check for backend
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@688 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
4df3f4658b
commit
2b7e1986a2
4 changed files with 135 additions and 88 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue