summaryrefslogtreecommitdiff
path: root/src/gui/setup.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-04-07 13:49:18 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-04-07 13:49:18 +0000
commit112fbe319f1e9070e9b6b62a7ec12d625a19be51 (patch)
tree62572ba750a8fb8d37d2f63a69f282d8590f4c31 /src/gui/setup.cpp
parent682be63061b2134cd3bc8b272fd3180e82437bb9 (diff)
downloadmana-112fbe319f1e9070e9b6b62a7ec12d625a19be51.tar.gz
mana-112fbe319f1e9070e9b6b62a7ec12d625a19be51.tar.bz2
mana-112fbe319f1e9070e9b6b62a7ec12d625a19be51.tar.xz
mana-112fbe319f1e9070e9b6b62a7ec12d625a19be51.zip
* Fixed crash on exit when trying to delete listbox that wasn't created.
* Disabled Ok button in Buy and Sell dialog when amount is 0 * Corrected the three known map bugs
Diffstat (limited to 'src/gui/setup.cpp')
-rw-r--r--src/gui/setup.cpp20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/gui/setup.cpp b/src/gui/setup.cpp
index cfe155f8..b0a35380 100644
--- a/src/gui/setup.cpp
+++ b/src/gui/setup.cpp
@@ -40,7 +40,8 @@
#include <string.h>
#include <memory.h>
-/*SDL_Rect **modes;
+/*
+SDL_Rect **modes;
ModeListModel::ModeListModel()
{
@@ -92,7 +93,8 @@ int ModeListModel::getNumberOfElements()
std::string ModeListModel::getElementAt(int i)
{
return mode[i];
-}*/
+}
+*/
Setup::Setup():
Window("Setup")
@@ -121,9 +123,11 @@ Setup::Setup():
// Set dimensions/positions
setContentSize(240, 216);
- /*scrollArea->setDimension(gcn::Rectangle(10, 40, 90, 50));
+ /*
+ scrollArea->setDimension(gcn::Rectangle(10, 40, 90, 50));
modeList->setDimension(gcn::Rectangle(0, 0, 60, 50));
- displayLabel->setDimension(gcn::Rectangle(10, 10, 100,16));*/
+ displayLabel->setDimension(gcn::Rectangle(10, 10, 100,16));
+ */
cancelButton->setPosition(
240 - 5 - cancelButton->getWidth(),
216 - 5 - cancelButton->getHeight());
@@ -168,13 +172,13 @@ Setup::Setup():
Setup::~Setup()
{
- delete modeListModel;
- delete modeList;
- delete scrollArea;
+ //delete modeListModel;
+ //delete modeList;
+ //delete scrollArea;
delete fsCheckBox;
delete soundCheckBox;
delete soundLabel;
- delete displayLabel;
+ //delete displayLabel;
delete applyButton;
delete cancelButton;
delete alphaLabel;