From b02a815a27e1135a0c9a63b2b6069e79294179bd Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Mon, 6 Oct 2025 17:34:19 -0700 Subject: [PATCH] flush dwm on resize; use WS_EX_NOREDIRECTIONBITMAP window flag to avoid dwm bug --- src/os/gfx/win32/os_gfx_win32.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/os/gfx/win32/os_gfx_win32.c b/src/os/gfx/win32/os_gfx_win32.c index 5b8ab880..68ff15a6 100644 --- a/src/os/gfx/win32/os_gfx_win32.c +++ b/src/os/gfx/win32/os_gfx_win32.c @@ -369,6 +369,7 @@ os_w32_wnd_proc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) BeginPaint(hwnd, &ps); update(); EndPaint(hwnd, &ps); + DwmFlush(); }break; case WM_CLOSE: @@ -1056,7 +1057,7 @@ os_window_open(Rng2F32 rect, OS_WindowFlags flags, String8 title) Temp scratch = scratch_begin(0, 0); String16 title16 = str16_from_8(scratch.arena, title); os_w32_new_window_custom_border = custom_border; - hwnd = CreateWindowExW(WS_EX_APPWINDOW, + hwnd = CreateWindowExW(WS_EX_APPWINDOW | WS_EX_NOREDIRECTIONBITMAP, L"graphical-window", (WCHAR*)title16.str, WS_OVERLAPPEDWINDOW | WS_SIZEBOX,