[Scummvm-git-logs] scummvm master -> b8d56cd168cee9287fc4e20a51c7f9765fc9df00

lephilousophe noreply at scummvm.org
Sun Oct 30 11:33:56 UTC 2022


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:
b8d56cd168 GUI: Remove visible check in theme


Commit: b8d56cd168cee9287fc4e20a51c7f9765fc9df00
    https://github.com/scummvm/scummvm/commit/b8d56cd168cee9287fc4e20a51c7f9765fc9df00
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2022-10-30T12:33:53+01:00

Commit Message:
GUI: Remove visible check in theme

This slows down this time critical function and the value can never be
set anyway.

Changed paths:
    gui/widget.cpp


diff --git a/gui/widget.cpp b/gui/widget.cpp
index 0b39e7df519..5c6c6c99c23 100644
--- a/gui/widget.cpp
+++ b/gui/widget.cpp
@@ -214,9 +214,6 @@ void Widget::setVisible(bool e) {
 }
 
 bool Widget::isVisible() const {
-	if (g_gui.xmlEval()->getVar("Dialog." + _name + ".Visible", 1) == 0)
-		return false;
-
 	return !(_flags & WIDGET_INVISIBLE);
 }
 




More information about the Scummvm-git-logs mailing list