diff options
author | Colin Snover | 2017-05-05 23:05:12 -0500 |
---|---|---|
committer | Colin Snover | 2017-05-06 10:38:58 -0500 |
commit | 575ed98da1035c0d08338f01b6db6de5e5987214 (patch) | |
tree | 16c9e7e5df15904dcf47ba2e98023773e983dbe9 /engines/sci/graphics/frameout.h | |
parent | b73e275b42955d95b8728f8c636e42d3373bf8e8 (diff) | |
download | scummvm-rg350-575ed98da1035c0d08338f01b6db6de5e5987214.tar.gz scummvm-rg350-575ed98da1035c0d08338f01b6db6de5e5987214.tar.bz2 scummvm-rg350-575ed98da1035c0d08338f01b6db6de5e5987214.zip |
SCI32: Centralize handling of pixel format switches
Diffstat (limited to 'engines/sci/graphics/frameout.h')
-rw-r--r-- | engines/sci/graphics/frameout.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/sci/graphics/frameout.h b/engines/sci/graphics/frameout.h index 650c2c7889..e706f141b2 100644 --- a/engines/sci/graphics/frameout.h +++ b/engines/sci/graphics/frameout.h @@ -23,6 +23,7 @@ #ifndef SCI_GRAPHICS_FRAMEOUT_H #define SCI_GRAPHICS_FRAMEOUT_H +#include "engines/util.h" // for initGraphics #include "sci/graphics/plane32.h" #include "sci/graphics/screen_item32.h" @@ -284,6 +285,10 @@ private: } public: + void setPixelFormat(const Graphics::PixelFormat &format) const { + initGraphics(_currentBuffer.screenWidth, _currentBuffer.screenHeight, _isHiRes, &format); + } + /** * Whether palMorphFrameOut should be used instead of * frameOut for rendering. Used by kMorphOn to |