summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-07 12:45:31 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-07 12:45:31 +0000
commit5d94840c848fb0c41fb2c1d92488510936acdcd2 (patch)
tree5f2885924d1779fe8e385a1b4adff3d7a24bacd0 /src/gui/gui.cpp
parent7692d16b78efd8a4f683150094065079df84461d (diff)
downloadmana-5d94840c848fb0c41fb2c1d92488510936acdcd2.tar.gz
mana-5d94840c848fb0c41fb2c1d92488510936acdcd2.tar.bz2
mana-5d94840c848fb0c41fb2c1d92488510936acdcd2.tar.xz
mana-5d94840c848fb0c41fb2c1d92488510936acdcd2.zip
Solved the window dragging problem.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index c227f05f..5cd475af 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -28,10 +28,7 @@
#include "../log.h"
#include "../sound/sound.h"
#include "allegroinput.h"
-
-#ifndef WIN32
-#define __cdecl __attribute__((cdecl))
-#endif
+#include "windowcontainer.h"
#define GUI_BMP_COUNT 11
#define GUI_BMP_OFS_BUTTON 0
@@ -71,7 +68,7 @@ Gui::Gui(BITMAP *screen)
gcn::Image::setImageLoader(imageLoader);
// Initialize top GUI widget
- guiTop = new gcn::Container();
+ guiTop = new WindowContainer();
guiTop->setDimension(gcn::Rectangle(0, 0, SCREEN_W, SCREEN_H));
guiTop->setOpaque(false);