Skip to content

Commit

Permalink
SUPERNOVA: Adds getters for screen width and height
Browse files Browse the repository at this point in the history
  • Loading branch information
Joefish committed May 28, 2019
1 parent 7c3b128 commit e7b91fe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions engines/supernova/screen.cpp
Expand Up @@ -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;
}
Expand Down
2 changes: 2 additions & 0 deletions engines/supernova/screen.h
Expand Up @@ -134,6 +134,8 @@ class Screen {
public:
Screen(SupernovaEngine *vm, ResourceManager *resMan);

int getScreenWidth() const;
int getScreenHeight() const;
int getViewportBrightness() const;
void setViewportBrightness(int brightness);
int getGuiBrightness() const;
Expand Down

0 comments on commit e7b91fe

Please sign in to comment.