diff --git a/include/Mw/GDI.h b/include/Mw/GDI.h index a61c600..ce1a24c 100644 --- a/include/Mw/GDI.h +++ b/include/Mw/GDI.h @@ -17,7 +17,7 @@ struct _MwLL { HWND hWnd; HDC hDC; void* user; - int copy_buffer; + int copy_buffer; MwLLHandler handler; }; diff --git a/src/gdi.c b/src/gdi.c index fd85e45..c422f9a 100644 --- a/src/gdi.c +++ b/src/gdi.c @@ -82,8 +82,7 @@ MwLL MwLLCreate(MwLL parent, int x, int y, int width, int height) { RegisterClassEx(&wc); - r->copy_buffer = 1; - r->hWnd = CreateWindow(parent == NULL ? "milsko" : "STATIC", "Milsko", parent == NULL ? (WS_OVERLAPPEDWINDOW) : (WS_CHILD | WS_VISIBLE), x, y, width, height, parent == NULL ? NULL : parent->hWnd, 0, wc.hInstance, NULL); + r->hWnd = CreateWindow(parent == NULL ? "milsko" : "STATIC", "Milsko", parent == NULL ? (WS_OVERLAPPEDWINDOW) : (WS_CHILD | WS_VISIBLE), x, y, width, height, parent == NULL ? NULL : parent->hWnd, 0, wc.hInstance, NULL); u->ll = r; if(parent == NULL) {