Only show gfx mode change messages in the OSD if the change was initiated by the user; not if it was done automatically (e.g. because a 640x480 game was started and we auto-switch to 1x scaling)

svn-id: r14223
This commit is contained in:
Max Horn 2004-07-16 09:29:09 +00:00
parent 613642efd0
commit f2f1687988
3 changed files with 55 additions and 50 deletions

View file

@ -163,21 +163,6 @@ void OSystem_SDL::setFeatureState(Feature f, bool enable) {
_adjustAspectRatio ^= true;
hotswap_gfx_mode();
#ifdef USE_OSD
char buffer[128];
if (_adjustAspectRatio)
sprintf(buffer, "Enabled aspect ratio correction\n%d x %d -> %d x %d",
_screenWidth, _screenHeight,
_hwscreen->w, _hwscreen->h
);
else
sprintf(buffer, "Disabled aspect ratio correction\n%d x %d -> %d x %d",
_screenWidth, _screenHeight,
_hwscreen->w, _hwscreen->h
);
displayMessageOnOSD(buffer);
#endif
// Blit everything to the screen
internUpdateScreen();