mirror of
https://github.com/libretro/RetroArch
synced 2025-02-25 21:41:03 +00:00
Move win32_window_init
This commit is contained in:
parent
65a9419522
commit
b40baa6323
@ -132,6 +132,23 @@ void win32_monitor_info(void *data, void *hm_data, unsigned *mon_id)
|
|||||||
mon->cbSize = sizeof(MONITORINFOEX);
|
mon->cbSize = sizeof(MONITORINFOEX);
|
||||||
GetMonitorInfo(*hm_to_use, (MONITORINFO*)mon);
|
GetMonitorInfo(*hm_to_use, (MONITORINFO*)mon);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool win32_window_init(WNDCLASSEX *wndclass)
|
||||||
|
{
|
||||||
|
wndclass->cbSize = sizeof(*wndclass);
|
||||||
|
wndclass->style = CS_HREDRAW | CS_VREDRAW | CS_OWNDC;
|
||||||
|
wndclass->lpfnWndProc = WndProc;
|
||||||
|
wndclass->hInstance = GetModuleHandle(NULL);
|
||||||
|
wndclass->hCursor = LoadCursor(NULL, IDC_ARROW);
|
||||||
|
wndclass->lpszClassName = "RetroArch";
|
||||||
|
wndclass->hIcon = LoadIcon(GetModuleHandle(NULL), MAKEINTRESOURCE(IDI_ICON));
|
||||||
|
wndclass->hIconSm = (HICON)LoadImage(GetModuleHandle(NULL),
|
||||||
|
MAKEINTRESOURCE(IDI_ICON), IMAGE_ICON, 16, 16, 0);
|
||||||
|
|
||||||
|
if (!RegisterClassEx(wndclass))
|
||||||
|
return false;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static bool win32_browser(
|
static bool win32_browser(
|
||||||
|
@ -47,6 +47,8 @@ void win32_monitor_from_window(HWND data, bool destroy);
|
|||||||
void win32_monitor_get_info(void);
|
void win32_monitor_get_info(void);
|
||||||
|
|
||||||
void win32_monitor_info(void *data, void *hm_data, unsigned *mon_id);
|
void win32_monitor_info(void *data, void *hm_data, unsigned *mon_id);
|
||||||
|
|
||||||
|
bool win32_window_init(WNDCLASSEX *wndclass);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool win32_suppress_screensaver(void *data, bool enable);
|
bool win32_suppress_screensaver(void *data, bool enable);
|
||||||
|
@ -391,23 +391,6 @@ static void gfx_ctx_wgl_get_video_size(void *data, unsigned *width, unsigned *he
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool win32_window_init(WNDCLASSEX *wndclass)
|
|
||||||
{
|
|
||||||
wndclass->cbSize = sizeof(*wndclass);
|
|
||||||
wndclass->style = CS_HREDRAW | CS_VREDRAW | CS_OWNDC;
|
|
||||||
wndclass->lpfnWndProc = WndProc;
|
|
||||||
wndclass->hInstance = GetModuleHandle(NULL);
|
|
||||||
wndclass->hCursor = LoadCursor(NULL, IDC_ARROW);
|
|
||||||
wndclass->lpszClassName = "RetroArch";
|
|
||||||
wndclass->hIcon = LoadIcon(GetModuleHandle(NULL), MAKEINTRESOURCE(IDI_ICON));
|
|
||||||
wndclass->hIconSm = (HICON)LoadImage(GetModuleHandle(NULL),
|
|
||||||
MAKEINTRESOURCE(IDI_ICON), IMAGE_ICON, 16, 16, 0);
|
|
||||||
|
|
||||||
if (!RegisterClassEx(wndclass))
|
|
||||||
return false;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
static bool gfx_ctx_wgl_init(void *data)
|
static bool gfx_ctx_wgl_init(void *data)
|
||||||
{
|
{
|
||||||
WNDCLASSEX wndclass = {0};
|
WNDCLASSEX wndclass = {0};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user