Make sure monitor refresh is called when switchres is used (SDL). Remove

a printf. (nw)
This commit is contained in:
couriersud 2015-04-21 21:22:53 +02:00
parent f0d075fa7a
commit 0e5436c325
2 changed files with 1 additions and 1 deletions

View File

@ -1268,6 +1268,7 @@ OSDWORK_CALLBACK( sdl_window_info::complete_create_wt )
SDL_WM_SetCaption(window->m_title, "SDLMAME");
#endif
window->monitor()->refresh();
// initialize the drawing backend
if (window->renderer().create())
return (void *) &result[1];

View File

@ -139,7 +139,6 @@ void win_monitor_info::refresh()
osd_free(temp);
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_is_primary = ((m_info.dwFlags & MONITORINFOF_PRIMARY) != 0);
(void)result; // to silence gcc 4.6