mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
Add win32_get_video_output_size
This commit is contained in:
parent
ca80f13b2b
commit
b943060797
@ -1053,3 +1053,17 @@ void win32_destroy_window(void)
|
||||
#endif
|
||||
main_window.hwnd = NULL;
|
||||
}
|
||||
|
||||
void win32_get_video_output_size(void *data,
|
||||
unsigned *width, unsigned *height)
|
||||
{
|
||||
DEVMODE dm;
|
||||
memset(&dm, 0, sizeof(dm));
|
||||
dm.dmSize = sizeof(dm);
|
||||
|
||||
if (EnumDisplaySettings(NULL, ENUM_CURRENT_SETTINGS, &dm) != 0)
|
||||
{
|
||||
*width = dm.dmPelsWidth;
|
||||
*height = dm.dmPelsHeight;
|
||||
}
|
||||
}
|
||||
|
@ -113,6 +113,9 @@ void win32_set_style(MONITORINFOEX *current_mon, HMONITOR *hm_to_use,
|
||||
RECT *rect, RECT *mon_rect, DWORD *style);
|
||||
#endif
|
||||
|
||||
void win32_get_video_output_size(void *data,
|
||||
unsigned *width, unsigned *height);
|
||||
|
||||
void win32_window_reset(void);
|
||||
|
||||
void win32_destroy_window(void);
|
||||
|
Loading…
Reference in New Issue
Block a user