aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJoseph-Eugene Winzer2019-05-28 02:12:57 +0200
committerJoseph-Eugene Winzer2019-05-28 02:24:42 +0200
commite7b91fe40fefc727d8108b1616fab9bd2a4c551f (patch)
treefbecbe84b00a41b812b6832429752b0a56e2338d /engines
parent7c3b128661d4131001c2a5940796c527ab710817 (diff)
downloadscummvm-rg350-e7b91fe40fefc727d8108b1616fab9bd2a4c551f.tar.gz
scummvm-rg350-e7b91fe40fefc727d8108b1616fab9bd2a4c551f.tar.bz2
scummvm-rg350-e7b91fe40fefc727d8108b1616fab9bd2a4c551f.zip
SUPERNOVA: Adds getters for screen width and height
Diffstat (limited to 'engines')
-rw-r--r--engines/supernova/screen.cpp8
-rw-r--r--engines/supernova/screen.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/engines/supernova/screen.cpp b/engines/supernova/screen.cpp
index 1fa112bb05..f28af28134 100644
--- a/engines/supernova/screen.cpp
+++ b/engines/supernova/screen.cpp
@@ -187,6 +187,14 @@ Screen::Screen(SupernovaEngine *vm, ResourceManager *resMan)
CursorMan.showMouse(true);
}
+int Screen::getScreenWidth() const {
+ return _screenWidth;
+}
+
+int Screen::getScreenHeight() const {
+ return _screenHeight;
+}
+
int Screen::getGuiBrightness() const {
return _guiBrightness;
}
diff --git a/engines/supernova/screen.h b/engines/supernova/screen.h
index bcffe61fc9..bd135d85ae 100644
--- a/engines/supernova/screen.h
+++ b/engines/supernova/screen.h
@@ -134,6 +134,8 @@ public:
public:
Screen(SupernovaEngine *vm, ResourceManager *resMan);
+ int getScreenWidth() const;
+ int getScreenHeight() const;
int getViewportBrightness() const;
void setViewportBrightness(int brightness);
int getGuiBrightness() const;