commit 12c6db1

uint  ·  2026-06-23 00:08:17 +0000 UTC
parent 7b9a480
Implement win32 maus_present
1 files changed,  +6, -0
+6, -0
 1@@ -376,7 +376,13 @@ void maus_event_wait(Maus* mw, MausEvent* ev)
 2 
 3 void maus_present(Maus* mw)
 4 {
 5+	MausBackend* be = &mw->backend;
 6+	if (!be->hwnd || !be->memdc)
 7+		return;
 8+	HDC wdc = GetDC(be->hwnd);
 9 
10+	BitBlt(wdc, 0, 0, mw->width, mw->height, be->memdc, 0, 0, SRCCOPY);
11+	ReleaseDC(be->hwnd, wdc);
12 }
13 
14 bool maus_resize(Maus* mw, uint32_t width, uint32_t height)