mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Merge pull request #13437 from xsellier/bugfix/mouse-cursor-lag
Implement hardware cursor acceleration for Godot Engine 2.1
This commit is contained in:
@@ -930,17 +930,6 @@ Error EditorExportPlatform::export_project_files(EditorExportSaveFunction p_func
|
||||
boot_splash = splash;
|
||||
}
|
||||
}
|
||||
StringName custom_cursor;
|
||||
{
|
||||
String splash = Globals::get_singleton()->get("display/custom_mouse_cursor"); //avoid splash from being converted
|
||||
splash = splash.strip_edges();
|
||||
if (splash != String()) {
|
||||
if (!splash.begins_with("res://"))
|
||||
splash = "res://" + splash;
|
||||
splash = splash.simplify_path();
|
||||
custom_cursor = splash;
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < files.size(); i++) {
|
||||
|
||||
@@ -949,7 +938,7 @@ Error EditorExportPlatform::export_project_files(EditorExportSaveFunction p_func
|
||||
String src = files[i];
|
||||
Vector<uint8_t> buf;
|
||||
|
||||
if (src == boot_splash || src == custom_cursor)
|
||||
if (src == boot_splash)
|
||||
buf = get_exported_file_default(src); //bootsplash must be kept if used
|
||||
else
|
||||
buf = get_exported_file(src);
|
||||
|
||||
Reference in New Issue
Block a user