diff options
author | Bastien Bouclet | 2017-09-10 09:55:07 +0200 |
---|---|---|
committer | Bastien Bouclet | 2017-09-12 20:25:24 +0200 |
commit | d534299d384dfe4543208419cb372a63c2891a00 (patch) | |
tree | 8331389976a770e144f83bdfdc28ec11fefb8d11 /engines/pegasus/transition.h | |
parent | 1519b2befcb71ff52f92144406d67ce8a7b76b35 (diff) | |
download | scummvm-rg350-d534299d384dfe4543208419cb372a63c2891a00.tar.gz scummvm-rg350-d534299d384dfe4543208419cb372a63c2891a00.tar.bz2 scummvm-rg350-d534299d384dfe4543208419cb372a63c2891a00.zip |
PEGASUS: Don't do virtual calls when fading the screen
For better performance.
Diffstat (limited to 'engines/pegasus/transition.h')
-rw-r--r-- | engines/pegasus/transition.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/pegasus/transition.h b/engines/pegasus/transition.h index e1f0822f1b..f8cdb3e365 100644 --- a/engines/pegasus/transition.h +++ b/engines/pegasus/transition.h @@ -47,7 +47,7 @@ public: private: bool _isBlack; uint32 fadePixel(uint32 color, int32 percent) const; - Graphics::Surface *_screen; + Graphics::Surface _screen; }; // Transitions are faders that range over [0,1000], which makes their |