diff options
author | Johannes Schickel | 2015-02-16 01:24:42 +0100 |
---|---|---|
committer | Johannes Schickel | 2015-02-16 01:25:22 +0100 |
commit | 3f22c12c56572d7c0b46e734179255062f81f45c (patch) | |
tree | 5a070061aa6aef0c1ddf8ce8d120bf45c163a811 /backends/platform/sdl/sdl-window.h | |
parent | 627d766325e1d435816648f85dbf9c007269b3f2 (diff) | |
download | scummvm-rg350-3f22c12c56572d7c0b46e734179255062f81f45c.tar.gz scummvm-rg350-3f22c12c56572d7c0b46e734179255062f81f45c.tar.bz2 scummvm-rg350-3f22c12c56572d7c0b46e734179255062f81f45c.zip |
SDL: Handle icon setup in SdlWindow.
Diffstat (limited to 'backends/platform/sdl/sdl-window.h')
-rw-r--r-- | backends/platform/sdl/sdl-window.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/backends/platform/sdl/sdl-window.h b/backends/platform/sdl/sdl-window.h index da3dda7f2d..46997f373d 100644 --- a/backends/platform/sdl/sdl-window.h +++ b/backends/platform/sdl/sdl-window.h @@ -33,19 +33,16 @@ public: virtual ~SdlWindow(); /** - * Change the caption of the window. - * - * @param caption New window caption in UTF-8 encoding. + * Setup the window icon. */ - void setWindowCaption(const Common::String &caption); + virtual void setupIcon(); /** - * Attach an icon to the window. + * Change the caption of the window. * - * @param icon The surface to use as icon. SdlGraphicsManager takes - * ownership over it. + * @param caption New window caption in UTF-8 encoding. */ - void setWindowIcon(SDL_Surface *icon); + void setWindowCaption(const Common::String &caption); /** * Toggle mouse grab state. This decides whether the cursor can leave the @@ -100,4 +97,9 @@ private: #endif }; +class SdlIconlessWindow : public SdlWindow { +public: + virtual void setupIcon() {} +}; + #endif |