aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Snover2017-10-07 12:01:23 -0500
committerColin Snover2017-10-07 12:30:29 -0500
commit04f357e6ff0c7c2b5c11d853fc3e40d0b4cdd391 (patch)
treef95119d89e033f435f63db390ce9ba2193928f40
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.
-rw-r--r--backends/graphics/graphics.h2
-rw-r--r--common/system.h2
2 files changed, 2 insertions, 2 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;
diff --git a/common/system.h b/common/system.h
index a7f084b455..206c3134c4 100644
--- a/common/system.h
+++ b/common/system.h
@@ -644,7 +644,7 @@ public:
*
* @param modes the list of graphics modes the engine will probably use.
*/
- virtual void initSizeHint(const Graphics::ModeList &modes) = 0;
+ virtual void initSizeHint(const Graphics::ModeList &modes) {}
/**
* Return an int value which is changed whenever any screen