only enable WS_EX_NOREDIRECTIONBITMAP on non-gl renderers - need either this, or we'll need to switch win32/gl to directcomposition (?)

This commit is contained in:
Ryan Fleury
2025-11-03 11:29:04 -08:00
parent 4c32238b38
commit 499fe635d6
+5 -1
View File
@@ -1066,7 +1066,11 @@ os_window_open(Rng2F32 rect, OS_WindowFlags flags, String8 title)
Temp scratch = scratch_begin(0, 0); Temp scratch = scratch_begin(0, 0);
String16 title16 = str16_from_8(scratch.arena, title); String16 title16 = str16_from_8(scratch.arena, title);
os_w32_new_window_custom_border = custom_border; os_w32_new_window_custom_border = custom_border;
hwnd = CreateWindowExW(WS_EX_APPWINDOW | WS_EX_NOREDIRECTIONBITMAP, DWORD style_flags = WS_EX_APPWINDOW;
#if defined(R_BACKEND) && R_BACKEND != R_BACKEND_OPENGL
style_flags |= WS_EX_NOREDIRECTIONBITMAP;
#endif
hwnd = CreateWindowExW(style_flags,
L"graphical-window", L"graphical-window",
(WCHAR*)title16.str, (WCHAR*)title16.str,
WS_OVERLAPPEDWINDOW | WS_SIZEBOX, WS_OVERLAPPEDWINDOW | WS_SIZEBOX,