aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics
diff options
context:
space:
mode:
authorColin Snover2017-10-07 12:01:23 -0500
committerColin Snover2017-10-07 12:30:29 -0500
commit04f357e6ff0c7c2b5c11d853fc3e40d0b4cdd391 (patch)
treef95119d89e033f435f63db390ce9ba2193928f40 /backends/graphics
parent6e157429b7a5a64af6265d075c88595df2d6fd79 (diff)
downloadscummvm-rg350-04f357e6ff0c7c2b5c11d853fc3e40d0b4cdd391.tar.gz
scummvm-rg350-04f357e6ff0c7c2b5c11d853fc3e40d0b4cdd391.tar.bz2
scummvm-rg350-04f357e6ff0c7c2b5c11d853fc3e40d0b4cdd391.zip
BACKENDS: Make initSizeHint an optional extension point
There is no particular reason why backends that don't need to calculate screen dimensions in advance should still need to implement initSizeHint at this point.
Diffstat (limited to 'backends/graphics')
-rw-r--r--backends/graphics/graphics.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/graphics/graphics.h b/backends/graphics/graphics.h
index 9f07d36190..bcd659ac11 100644
--- a/backends/graphics/graphics.h
+++ b/backends/graphics/graphics.h
@@ -59,7 +59,7 @@ public:
virtual Common::List<Graphics::PixelFormat> getSupportedFormats() const = 0;
#endif
virtual void initSize(uint width, uint height, const Graphics::PixelFormat *format = NULL) = 0;
- virtual void initSizeHint(const Graphics::ModeList &modes) = 0;
+ virtual void initSizeHint(const Graphics::ModeList &modes) {}
virtual int getScreenChangeID() const = 0;
virtual void beginGFXTransaction() = 0;