From b2ef0f864e5b3f1efb891dc3eb1f0830770d3fff Mon Sep 17 00:00:00 2001 From: sleeptightAnsiC <91839286+sleeptightAnsiC@users.noreply.github.com> Date: Thu, 13 Mar 2025 16:48:57 +0100 Subject: [PATCH] [portable_window] fix window flicker when moving it without dragging... (#469) ...the bar. This example never expected it and was caching Window Position, which means that position was outdated at the moment you moved the window via other means than dragging the bar. Fixes: https://github.com/raysan5/raygui/issues/468 --- examples/portable_window/portable_window.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/portable_window/portable_window.c b/examples/portable_window/portable_window.c index 8194e64..a7d3c9a 100644 --- a/examples/portable_window/portable_window.c +++ b/examples/portable_window/portable_window.c @@ -57,6 +57,7 @@ int main() { if (CheckCollisionPointRec(mousePosition, (Rectangle){ 0, 0, screenWidth, 20 })) { + windowPosition = GetWindowPosition(); dragWindow = true; panOffset = mousePosition; }