Add win32_get_video_output_size

This commit is contained in:
twinaphex 2017-08-09 03:44:03 +02:00
parent ca80f13b2b
commit b943060797
2 changed files with 17 additions and 0 deletions

View File

@ -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;
}
}

View File

@ -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);