aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/sdl/sdl-window.h
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform/sdl/sdl-window.h')
-rw-r--r--backends/platform/sdl/sdl-window.h18
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