BACKENDS: Fix window sizing of games that switch between multiple resolutions

This commit is contained in:
Colin Snover 2017-10-01 16:23:22 -05:00
parent 24f5d45619
commit 6e157429b7
17 changed files with 287 additions and 57 deletions

View file

@ -43,8 +43,7 @@ public:
virtual void setFeatureState(OSystem::Feature f, bool enable);
virtual bool getFeatureState(OSystem::Feature f);
virtual bool setGraphicsMode(int mode);
virtual void resetGraphicsScale();
virtual void initSize(uint w, uint h, const Graphics::PixelFormat *format) override;
#ifdef USE_RGB_COLOR
virtual Common::List<Graphics::PixelFormat> getSupportedFormats() const;
@ -69,6 +68,8 @@ protected:
virtual void refreshScreen();
virtual void *getProcAddress(const char *name) const;
virtual int getGraphicsModeScale(int mode) const override { return 1; }
private:
bool setupMode(uint width, uint height);