(360) WNDCLASSEX not available

This commit is contained in:
twinaphex 2015-11-17 11:02:18 +01:00
parent 5b578af702
commit 7394913f11
2 changed files with 7 additions and 2 deletions

View File

@ -245,9 +245,14 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
return DefWindowProc(hwnd, message, wparam, lparam);
}
bool win32_window_init(WNDCLASSEX *wndclass, bool fullscreen)
bool win32_window_init(void *data, bool fullscreen)
{
#ifndef _XBOX
WNDCLASSEX *wndclass = (WNDCLASSEX*)data;
if (!wndclass)
return false;
wndclass->cbSize = sizeof(WNDCLASSEX);
wndclass->style = CS_HREDRAW | CS_VREDRAW | CS_OWNDC;
wndclass->lpfnWndProc = WndProc;

View File

@ -59,7 +59,7 @@ bool win32_set_video_mode(void *data,
bool win32_monitor_set_fullscreen(unsigned width,
unsigned height, unsigned refresh, char *dev_name);
bool win32_window_init(WNDCLASSEX *wndclass, bool fullscreen);
bool win32_window_init(void *wndclass, bool fullscreen);
bool win32_window_create(void *data, unsigned style,
RECT *mon_rect, unsigned width,