diff --git a/libs_win32/app.h b/libs_win32/app.h index 9140bce..d293f8e 100644 --- a/libs_win32/app.h +++ b/libs_win32/app.h @@ -1578,7 +1578,7 @@ int app_run( int (*app_proc)( app_t*, void* ), void* user_data, void* memctx, vo wc.hInstance = app->hinstance; wc.hIcon = app->icon; wc.hCursor = app->current_pointer; wc.hbrBackground = (HBRUSH) GetStockObject( BLACK_BRUSH ); wc.hIconSm = app->icon; RegisterClassEx( &wc ); - app->hwnd = CreateWindowEx( APP_WINDOWED_WS_EX_STYLE, wc.lpszClassName, 0, APP_WINDOWED_WS_STYLE, app->windowed_x, app->windowed_y, + app->hwnd = CreateWindowEx( 0, wc.lpszClassName, 0, WS_POPUP, app->windowed_x, app->windowed_y, winrect.right - winrect.left, winrect.bottom - winrect.top, (HWND) 0, (HMENU) 0, app->hinstance, 0 ); if( !app->hwnd ) { app_log( app, APP_LOG_LEVEL_ERROR, "Failed to create window." ); goto init_failed; } app->hdc = GetDC( app->hwnd );