Forráskód Böngészése

X11: Turn warning about not finding cursor theme into verbose output.

Failing to get the cursor theme should not cause any issues since we're then using the default one anyway.
So I removed the warning and made it a verbose-only print instead, as people tend to mistake it for a real error..
(pretty much like `iCCP: known incorrect sRGB profile` :P)
Andreas Haas 8 éve
szülő
commit
d6333066fc
1 módosított fájl, 3 hozzáadás és 1 törlés
  1. 3 1
      platform/x11/os_x11.cpp

+ 3 - 1
platform/x11/os_x11.cpp

@@ -336,7 +336,9 @@ void OS_X11::initialize(const VideoMode &p_desired, int p_video_driver, int p_au
 	cursor_theme = XcursorGetTheme(x11_display);
 	cursor_theme = XcursorGetTheme(x11_display);
 
 
 	if (!cursor_theme) {
 	if (!cursor_theme) {
-		WARN_PRINT("Could not find cursor theme");
+		if (is_stdout_verbose()) {
+			print_line("XcursorGetTheme could not get cursor theme");
+		}
 		cursor_theme = "default";
 		cursor_theme = "default";
 	}
 	}