Skip to content

Commit

Permalink
KOTOR: Add width and height attributes to gui
Browse files Browse the repository at this point in the history
  • Loading branch information
farmboy0 committed Dec 13, 2017
1 parent 48c582b commit 62cc7e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/engines/kotor/gui/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ GUI::WidgetContext::WidgetContext(const Aurora::GFF3Struct &s, Widget *p) {
}


GUI::GUI(::Engines::Console *console) : ::Engines::GUI(console), _widgetZ(0) {
GUI::GUI(::Engines::Console *console) : ::Engines::GUI(console), _widgetZ(0), _guiHeight(0.0f), _guiWidth(0.0f) {
}

GUI::~GUI() {
Expand Down
3 changes: 3 additions & 0 deletions src/engines/kotor/gui/gui.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ class GUI : public Engines::GUI {

float _widgetZ;

float _guiHeight;
float _guiWidth;

Common::ScopedPtr<GUIBackground> _background;

Common::ScopedPtr<Aurora::GFF3File> _gff;
Expand Down

0 comments on commit 62cc7e8

Please sign in to comment.