From 04f357e6ff0c7c2b5c11d853fc3e40d0b4cdd391 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Sat, 7 Oct 2017 12:01:23 -0500 Subject: 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. --- backends/graphics/graphics.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backends/graphics') 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 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; -- cgit v1.2.3