diff options
author | Strangerke | 2017-12-02 23:11:59 +0100 |
---|---|---|
committer | Thierry Crozat | 2018-01-23 02:15:42 +0000 |
commit | b4d7a83c753b9e4a32062d44c9d51d905272c8f4 (patch) | |
tree | e43c5cad2080d262c90fff54a4a7c5099475f993 /engines/supernova/state.cpp | |
parent | 8efc3a15c1ee9d5cad88cacc461f5b58e420c1e6 (diff) | |
download | scummvm-rg350-b4d7a83c753b9e4a32062d44c9d51d905272c8f4.tar.gz scummvm-rg350-b4d7a83c753b9e4a32062d44c9d51d905272c8f4.tar.bz2 scummvm-rg350-b4d7a83c753b9e4a32062d44c9d51d905272c8f4.zip |
SUPERNOVA: Small cleanups
Diffstat (limited to 'engines/supernova/state.cpp')
-rw-r--r-- | engines/supernova/state.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/supernova/state.cpp b/engines/supernova/state.cpp index fe2529272b..dbf24bc2a9 100644 --- a/engines/supernova/state.cpp +++ b/engines/supernova/state.cpp @@ -212,17 +212,16 @@ void GuiElement::setText(const char *text) { } void GuiElement::setTextPosition(int x, int y) { - _textPosition.x = x; - _textPosition.y = y; + _textPosition = Common::Point(x, y); } + void GuiElement::setSize(int x1, int y1, int x2, int y2) { this->left = x1; this->top = y1; this->right = x2; this->bottom = y2; - _textPosition.x = x1 + 1; - _textPosition.y = y1 + 1; + _textPosition = Common::Point(x1 + 1, y1 + 1); } void GuiElement::setColor(int bgColor, int textColor, int bgColorHighlighted, int textColorHightlighted) { |