diff options
Diffstat (limited to 'src/osd/sdl/drawsdl.c')
-rw-r--r-- | src/osd/sdl/drawsdl.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/osd/sdl/drawsdl.c b/src/osd/sdl/drawsdl.c index 19bb5ceb6f8..1d64cc8845d 100644 --- a/src/osd/sdl/drawsdl.c +++ b/src/osd/sdl/drawsdl.c @@ -671,19 +671,8 @@ int sdl_info::draw(UINT32 dc, int update) blitwidth = m_blitwidth; blitheight = m_blitheight; - // figure out what coordinate system to use for centering - in window mode it's always the - // SDL surface size. in fullscreen the surface covers all monitors, so center according to - // the first one only - if ((window().fullscreen()) && (!video_config.switchres)) - { - ch = window().monitor()->center_height(); - cw = window().monitor()->center_width(); - } - else - { - ch = height; - cw = width; - } + ch = height; + cw = width; // do not crash if the window's smaller than the blit area if (blitheight > ch) |