GRAPHICS: MACGUI: Add WM direct copy mode

This does not keep the current screen state cached in a surface, but re-creates
the screen from its various components each time something changes. This avoids
an intermediate blitting.

The mode is enabled just by not providing a surface to the WM, and instead
providing a width and height.
This commit is contained in:
Nathanael Gentry 2020-08-11 12:54:14 -04:00
parent 59dd1716b1
commit a639ae4002
5 changed files with 103 additions and 24 deletions

View file

@ -191,7 +191,7 @@ void MacWindow::center(bool toCenter) {
if (!_wm)
return;
Common::Rect screen = _wm->_screen->getBounds();
Common::Rect screen = _wm->getScreenBounds();
if (toCenter) {
move((screen.width() - _dims.width()) / 2, (screen.height() - _dims.height()) / 2);