windows bugfix

metadata
Wenzel Jakob 2011-03-21 19:17:57 +01:00
parent 1e3b877fd3
commit 83a601c967
1 changed files with 3 additions and 2 deletions

View File

@ -67,6 +67,8 @@ LONG WINAPI WGLDevice::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPara
break;
case WM_SIZE:
device->m_size = Vector2i(LOWORD(lParam), HIWORD(lParam));
deviceEvent.setType(EResizeEvent);
device->fireDeviceEvent(deviceEvent);
break;
case WM_PAINT:
BeginPaint(hWnd, &ps);
@ -277,7 +279,7 @@ void WGLDevice::init(Device *other) {
m_hwnd = CreateWindow(
session->m_wndClassName.c_str(),
m_title.c_str(),
m_fullscreen ? WS_POPUP : (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX),
m_fullscreen ? WS_POPUP : (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | WS_SIZEBOX),
CW_USEDEFAULT,
CW_USEDEFAULT,
getSize().x, getSize().y,
@ -634,7 +636,6 @@ void WGLDevice::setGrab(bool grab) {
showCursor(!grab);
}
void WGLDevice::shutdown() {
Device::shutdown();
Log(EDebug, "Shutting down WGL device");