Removed some instances of access to screen surface

This commit is contained in:
Ivan Savenko committed 2023-02-03 18:23:53 +02:00
1 parent 00c1a4ef76
commit 7c58a46279
20 files changed
+102 -103

No files matched your search

+1 -1
View File
@@ -69,7 +69,7 @@ CWindowObject::CWindowObject(int options_, std::string imageName):
if(background)
pos = background->center();
else
center(Point(screen->w/2, screen->h/2));
center(GH.screenDimensions() / 2);
if(!(options & SHADOW_DISABLED))
setShadow(true);