diff options
author | Max Horn | 2004-03-15 00:45:45 +0000 |
---|---|---|
committer | Max Horn | 2004-03-15 00:45:45 +0000 |
commit | e46ba2f29ff20a317e708d15dc5be904cdf005eb (patch) | |
tree | 994a9ccd5999a054ba285d2c63e549df03036b27 /backends/sdl | |
parent | b585b9ac4b2772ed7cddb12cc4435b40f0ddf21f (diff) | |
download | scummvm-rg350-e46ba2f29ff20a317e708d15dc5be904cdf005eb.tar.gz scummvm-rg350-e46ba2f29ff20a317e708d15dc5be904cdf005eb.tar.bz2 scummvm-rg350-e46ba2f29ff20a317e708d15dc5be904cdf005eb.zip |
Added OSystem::getDefaultGraphicsMode(); renamed OSystem::get_height() and get_width() to getHeight and getWidth(); augmented some doxygen comments in common/system.h
svn-id: r13284
Diffstat (limited to 'backends/sdl')
-rw-r--r-- | backends/sdl/events.cpp | 2 | ||||
-rw-r--r-- | backends/sdl/graphics.cpp | 8 | ||||
-rw-r--r-- | backends/sdl/sdl-common.h | 5 |
3 files changed, 10 insertions, 5 deletions
diff --git a/backends/sdl/events.cpp b/backends/sdl/events.cpp index dae18ae51d..b351db9524 100644 --- a/backends/sdl/events.cpp +++ b/backends/sdl/events.cpp @@ -192,7 +192,7 @@ bool OSystem_SDL::poll_event(Event *event) { // Alt-Return toggles full screen mode if (b == KBD_ALT && ev.key.keysym.sym == SDLK_RETURN) { - setFeatureState(kFeatureFullscreenMode, !_full_screen); + setFullscreenMode(!_full_screen); break; } diff --git a/backends/sdl/graphics.cpp b/backends/sdl/graphics.cpp index 0c9e603220..09040f5c63 100644 --- a/backends/sdl/graphics.cpp +++ b/backends/sdl/graphics.cpp @@ -45,6 +45,10 @@ const OSystem::GraphicsMode *OSystem_SDL::getSupportedGraphicsModes() const { return s_supportedGraphicsModes; } +int OSystem_SDL::getDefaultGraphicsMode() const { + return GFX_DOUBLESIZE; +} + bool OSystem_SDL::setGraphicsMode(int mode) { Common::StackLock lock(_graphicsMutex, this); @@ -715,11 +719,11 @@ void OSystem_SDL::add_dirty_rgn_auto(const byte *buf) { } } -int16 OSystem_SDL::get_height() { +int16 OSystem_SDL::getHeight() { return _screenHeight; } -int16 OSystem_SDL::get_width() { +int16 OSystem_SDL::getWidth() { return _screenWidth; } diff --git a/backends/sdl/sdl-common.h b/backends/sdl/sdl-common.h index c82ddb17c2..18ad04aabf 100644 --- a/backends/sdl/sdl-common.h +++ b/backends/sdl/sdl-common.h @@ -116,8 +116,8 @@ public: virtual void clear_overlay(); virtual void grab_overlay(OverlayColor *buf, int pitch); virtual void copy_rect_overlay(const OverlayColor *buf, int pitch, int x, int y, int w, int h); - virtual int16 get_height(); - virtual int16 get_width(); + virtual int16 getHeight(); + virtual int16 getWidth(); // Methods that convert RGB to/from colors suitable for the overlay. virtual OverlayColor RGBToColor(uint8 r, uint8 g, uint8 b); @@ -125,6 +125,7 @@ public: virtual const GraphicsMode *getSupportedGraphicsModes() const; + virtual int getDefaultGraphicsMode() const; virtual bool setGraphicsMode(int mode); virtual int getGraphicsMode() const; |