mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-06 13:58:40 +00:00
flush dwm on resize; use WS_EX_NOREDIRECTIONBITMAP window flag to avoid dwm bug
This commit is contained in:
@@ -369,6 +369,7 @@ os_w32_wnd_proc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||||||
BeginPaint(hwnd, &ps);
|
BeginPaint(hwnd, &ps);
|
||||||
update();
|
update();
|
||||||
EndPaint(hwnd, &ps);
|
EndPaint(hwnd, &ps);
|
||||||
|
DwmFlush();
|
||||||
}break;
|
}break;
|
||||||
|
|
||||||
case WM_CLOSE:
|
case WM_CLOSE:
|
||||||
@@ -1056,7 +1057,7 @@ 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,
|
hwnd = CreateWindowExW(WS_EX_APPWINDOW | WS_EX_NOREDIRECTIONBITMAP,
|
||||||
L"graphical-window",
|
L"graphical-window",
|
||||||
(WCHAR*)title16.str,
|
(WCHAR*)title16.str,
|
||||||
WS_OVERLAPPEDWINDOW | WS_SIZEBOX,
|
WS_OVERLAPPEDWINDOW | WS_SIZEBOX,
|
||||||
|
|||||||
Reference in New Issue
Block a user