mirror of
https://github.com/holub/mame
synced 2025-10-06 17:08:28 +03:00
Make sure monitor refresh is called when switchres is used (SDL). Remove
a printf. (nw)
This commit is contained in:
parent
f0d075fa7a
commit
0e5436c325
@ -1268,6 +1268,7 @@ OSDWORK_CALLBACK( sdl_window_info::complete_create_wt )
|
|||||||
SDL_WM_SetCaption(window->m_title, "SDLMAME");
|
SDL_WM_SetCaption(window->m_title, "SDLMAME");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
window->monitor()->refresh();
|
||||||
// initialize the drawing backend
|
// initialize the drawing backend
|
||||||
if (window->renderer().create())
|
if (window->renderer().create())
|
||||||
return (void *) &result[1];
|
return (void *) &result[1];
|
||||||
|
@ -139,7 +139,6 @@ void win_monitor_info::refresh()
|
|||||||
osd_free(temp);
|
osd_free(temp);
|
||||||
|
|
||||||
m_pos_size = RECT_to_osd_rect(m_info.rcMonitor);
|
m_pos_size = RECT_to_osd_rect(m_info.rcMonitor);
|
||||||
printf("%d %d\n", m_pos_size.width(), m_pos_size.height());
|
|
||||||
m_usuable_pos_size = RECT_to_osd_rect(m_info.rcWork);
|
m_usuable_pos_size = RECT_to_osd_rect(m_info.rcWork);
|
||||||
m_is_primary = ((m_info.dwFlags & MONITORINFOF_PRIMARY) != 0);
|
m_is_primary = ((m_info.dwFlags & MONITORINFOF_PRIMARY) != 0);
|
||||||
(void)result; // to silence gcc 4.6
|
(void)result; // to silence gcc 4.6
|
||||||
|
Loading…
Reference in New Issue
Block a user