Explorar o código

Set the default priority level of SDL_LOG_CATEGORY_ERROR to SDL_LOG_PRIORITY_ERROR

This way SDL_LogError() will show errors by default.

Fixes https://github.com/libsdl-org/SDL/issues/7105
Sam Lantinga %!s(int64=2) %!d(string=hai) anos
pai
achega
14695a714f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/SDL_log.c

+ 1 - 1
src/SDL_log.c

@@ -41,7 +41,7 @@
 /* The size of the stack buffer to use for rendering log messages. */
 #define SDL_MAX_LOG_MESSAGE_STACK 256
 
-#define DEFAULT_PRIORITY             SDL_LOG_PRIORITY_CRITICAL
+#define DEFAULT_PRIORITY             SDL_LOG_PRIORITY_ERROR
 #define DEFAULT_ASSERT_PRIORITY      SDL_LOG_PRIORITY_WARN
 #define DEFAULT_APPLICATION_PRIORITY SDL_LOG_PRIORITY_INFO
 #define DEFAULT_TEST_PRIORITY        SDL_LOG_PRIORITY_VERBOSE