From 3f635cdd79d6cdeed669da625e5740410018319f Mon Sep 17 00:00:00 2001 From: Nic Barker Date: Tue, 1 Apr 2025 10:31:40 +1300 Subject: [PATCH] [Renderers/Raylib] Fix FLAG_HIGHDPI causing window resize to break --- .../examples/clay-official-website/clay-official-website.odin | 2 +- examples/raylib-sidebar-scrolling-container/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/odin/examples/clay-official-website/clay-official-website.odin b/bindings/odin/examples/clay-official-website/clay-official-website.odin index fde0c6a..5be848d 100644 --- a/bindings/odin/examples/clay-official-website/clay-official-website.odin +++ b/bindings/odin/examples/clay-official-website/clay-official-website.odin @@ -495,7 +495,7 @@ main :: proc() { clay.Initialize(arena, {cast(f32)raylib.GetScreenWidth(), cast(f32)raylib.GetScreenHeight()}, { handler = errorHandler }) clay.SetMeasureTextFunction(measureText, nil) - raylib.SetConfigFlags({.VSYNC_HINT, .WINDOW_RESIZABLE, .WINDOW_HIGHDPI, .MSAA_4X_HINT}) + raylib.SetConfigFlags({.VSYNC_HINT, .WINDOW_RESIZABLE, .MSAA_4X_HINT}) raylib.InitWindow(windowWidth, windowHeight, "Raylib Odin Example") raylib.SetTargetFPS(raylib.GetMonitorRefreshRate(0)) loadFont(FONT_ID_TITLE_56, 56, "resources/Calistoga-Regular.ttf") diff --git a/examples/raylib-sidebar-scrolling-container/main.c b/examples/raylib-sidebar-scrolling-container/main.c index 21f30c5..662fa7a 100644 --- a/examples/raylib-sidebar-scrolling-container/main.c +++ b/examples/raylib-sidebar-scrolling-container/main.c @@ -226,7 +226,7 @@ int main(void) { uint64_t totalMemorySize = Clay_MinMemorySize(); Clay_Arena clayMemory = Clay_CreateArenaWithCapacityAndMemory(totalMemorySize, malloc(totalMemorySize)); Clay_Initialize(clayMemory, (Clay_Dimensions) { (float)GetScreenWidth(), (float)GetScreenHeight() }, (Clay_ErrorHandler) { HandleClayErrors, 0 }); - Clay_Raylib_Initialize(1024, 768, "Clay - Raylib Renderer Example", FLAG_VSYNC_HINT | FLAG_WINDOW_RESIZABLE | FLAG_WINDOW_HIGHDPI | FLAG_MSAA_4X_HINT); + Clay_Raylib_Initialize(1024, 768, "Clay - Raylib Renderer Example", FLAG_VSYNC_HINT | FLAG_WINDOW_RESIZABLE | FLAG_MSAA_4X_HINT); profilePicture = LoadTexture("resources/profile-picture.png"); Font fonts[2];