check for backend

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@688 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
Nishi 2025-11-13 05:46:06 +00:00
commit 2b7e1986a2
4 changed files with 135 additions and 88 deletions

View file

@ -234,6 +234,7 @@ static MwLL MwLLCreateImpl(MwLL parent, int x, int y, int width, int height) {
RegisterClassEx(&wc);
r->common.copy_buffer = 1;
r->common.type = MwLLBackendGDI;
r->gdi.grabbed = 0;
r->gdi.hWnd = CreateWindow("milsko", "Milsko", parent == NULL ? (WS_OVERLAPPEDWINDOW) : (WS_CHILD | WS_VISIBLE), x == MwDEFAULT ? CW_USEDEFAULT : x, y == MwDEFAULT ? CW_USEDEFAULT : y, width, height, parent == NULL ? NULL : parent->gdi.hWnd, 0, wc.hInstance, NULL);

View file

@ -191,6 +191,7 @@ static MwLL MwLLCreateImpl(MwLL parent, int x, int y, int width, int height) {
XSetICFocus(r->x11.xic);
r->common.copy_buffer = 1;
r->common.type = MwLLBackendX11;
r->x11.width = width;
r->x11.height = height;