aboutsummaryrefslogtreecommitdiff
path: root/gui/message.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2005-07-30 21:11:48 +0000
committerEugene Sandulenko2005-07-30 21:11:48 +0000
commit6b4484472b79dc7ea7d1ce545a28fba7d3b7696f (patch)
treec44c4e61f18ddd537f7082cb48869cf33d422fbd /gui/message.cpp
parent86ab70b149e5cd00cf54f2e41896e2c4e16795e4 (diff)
downloadscummvm-rg350-6b4484472b79dc7ea7d1ce545a28fba7d3b7696f.tar.gz
scummvm-rg350-6b4484472b79dc7ea7d1ce545a28fba7d3b7696f.tar.bz2
scummvm-rg350-6b4484472b79dc7ea7d1ce545a28fba7d3b7696f.zip
Remove trailing whitespaces.
svn-id: r18604
Diffstat (limited to 'gui/message.cpp')
-rw-r--r--gui/message.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/gui/message.cpp b/gui/message.cpp
index 92afaec7b5..ea7f579c45 100644
--- a/gui/message.cpp
+++ b/gui/message.cpp
@@ -36,7 +36,7 @@ enum {
MessageDialog::MessageDialog(const Common::String &message, const char *defaultButton, const char *altButton)
: Dialog(30, 20, 260, 124) {
-
+
const int screenW = g_system->getOverlayWidth();
const int screenH = g_system->getOverlayHeight();
@@ -52,7 +52,7 @@ MessageDialog::MessageDialog(const Common::String &message, const char *defaultB
buttonWidth = kButtonWidth;
buttonHeight = kButtonHeight;
}
-
+
// First, determine the size the dialog needs. For this we have to break
// down the string into lines, and taking the maximum of their widths.
// Using this, and accounting for the space the button(s) need, we can set
@@ -87,7 +87,7 @@ MessageDialog::MessageDialog(const Common::String &message, const char *defaultB
// FIXME - allow for more than two buttons, and return in runModal() which one
// was selected.
- if (defaultButton && altButton) {
+ if (defaultButton && altButton) {
okButtonPos = (_w - (buttonWidth * 2)) / 2;
cancelButtonPos = ((_w - (buttonWidth * 2)) / 2) + buttonWidth + 10;
} else {
@@ -102,7 +102,7 @@ MessageDialog::MessageDialog(const Common::String &message, const char *defaultB
}
void MessageDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data) {
- // FIXME: It's a really bad thing that we use two arbitrary constants
+ // FIXME: It's a really bad thing that we use two arbitrary constants
if (cmd == kOkCmd) {
setResult(kMessageOK);
close();