i think it works

This commit is contained in:
maksw committed 2026-04-30 23:52:46 +02:00
commit 0e1479b168
167 files changed
+27008

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
// user32.c - minimal user32 stubs (no window manager yet)
#include <stdint.h>
// Screen blit is the only graphical primitive available at this stage.
extern void SysScreenBlit(int x, int y, int w, int h, const uint32_t* pixels);
// syscall.dll
extern void SysYield(void);
void BitBlt(int x, int y, int w, int h, const uint32_t* pixels) {
SysScreenBlit(x, y, w, h, pixels);
}
// Message loop stubs - always return 0.
int GetMessage(void* msg, void* hwnd, unsigned int min, unsigned int max) {
(void)msg; (void)hwnd; (void)min; (void)max;
SysYield();
return 0;
}
int DispatchMessage(const void* msg) { (void)msg; return 0; }