From 3f22c12c56572d7c0b46e734179255062f81f45c Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Mon, 16 Feb 2015 01:24:42 +0100 Subject: SDL: Handle icon setup in SdlWindow. --- backends/platform/sdl/sdl-window.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'backends/platform/sdl/sdl-window.h') 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 -- cgit v1.2.3