[Scummvm-git-logs] scummvm master -> 686bc4905065371dcac33d0d0be946850d6eca0d

djsrv dservilla at gmail.com
Thu Aug 6 22:55:51 UTC 2020


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
686bc49050 GRAPHICS: MACGUI: Full refresh on dims changes


Commit: 686bc4905065371dcac33d0d0be946850d6eca0d
    https://github.com/scummvm/scummvm/commit/686bc4905065371dcac33d0d0be946850d6eca0d
Author: djsrv (dservilla at gmail.com)
Date: 2020-08-06T18:55:13-04:00

Commit Message:
GRAPHICS: MACGUI: Full refresh on dims changes

The desktop needs to be redrawn.

Changed paths:
    graphics/macgui/macwindow.cpp


diff --git a/graphics/macgui/macwindow.cpp b/graphics/macgui/macwindow.cpp
index 73a56539c4..21b9d67324 100644
--- a/graphics/macgui/macwindow.cpp
+++ b/graphics/macgui/macwindow.cpp
@@ -132,6 +132,7 @@ void MacWindow::resize(int w, int h, bool inner) {
 
 	_contentIsDirty = true;
 	_borderIsDirty = true;
+	_wm->setFullRefresh(true);
 }
 
 void MacWindow::move(int x, int y) {
@@ -142,6 +143,7 @@ void MacWindow::move(int x, int y) {
 	updateInnerDims();
 
 	_contentIsDirty = true;
+	_wm->setFullRefresh(true);
 }
 
 void MacWindow::setDimensions(const Common::Rect &r) {
@@ -150,6 +152,7 @@ void MacWindow::setDimensions(const Common::Rect &r) {
 	updateInnerDims();
 
 	_contentIsDirty = true;
+	_wm->setFullRefresh(true);
 }
 
 void MacWindow::setBackgroundPattern(int pattern) {
@@ -242,7 +245,6 @@ void MacWindow::updateOuterDims() {
 		_dims = _innerDims;
 		_dims.grow(kBorderWidth);
 	}
-	_borderIsDirty = true;
 }
 
 void MacWindow::drawBorder() {
@@ -454,6 +456,8 @@ void MacWindow::setBorder(Graphics::TransparentSurface *surface, bool active, Bo
 	}
 
 	updateOuterDims();
+	_borderIsDirty = true;
+	_wm->setFullRefresh(true);
 }
 
 void MacWindow::setCloseable(bool closeable) {




More information about the Scummvm-git-logs mailing list