enable vsync on desktop

efd/v1
Dominik Madarász 2022-10-16 13:13:04 +02:00
parent 746ec9b00d
commit bdd774fd50
1 changed files with 5 additions and 1 deletions

View File

@ -67,7 +67,11 @@ void platform_create_window(const char *title) {
#endif #endif
InitWindow(screenWidth, screenHeight, title); InitWindow(screenWidth, screenHeight, title);
SetWindowState(/*FLAG_WINDOW_UNDECORATED|*/FLAG_WINDOW_MAXIMIZED|FLAG_WINDOW_RESIZABLE|FLAG_MSAA_4X_HINT/* |FLAG_VSYNC_HINT */); uint32_t flags = /*FLAG_WINDOW_UNDECORATED|*/FLAG_WINDOW_MAXIMIZED|FLAG_WINDOW_RESIZABLE|FLAG_MSAA_4X_HINT;
#if !defined(PLATFORM_WEB)
flags |= FLAG_VSYNC_HINT;
#endif
SetWindowState(flags);
#if !defined(PLATFORM_WEB) #if !defined(PLATFORM_WEB)
screenWidth = (uint16_t)GetScreenWidth(); screenWidth = (uint16_t)GetScreenWidth();