summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2004-10-03 13:34:33 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2004-10-03 13:34:33 +0000
commit1c44e1f097d387fcce872f4b67c9996c050e83f9 (patch)
tree1aeefd98eb1b24f3c3901bbe25c2014d145a6daa /src/gui
parent33a122be88b1d16f6a45060a0237d643877f4ae3 (diff)
downloadmana-1c44e1f097d387fcce872f4b67c9996c050e83f9.tar.gz
mana-1c44e1f097d387fcce872f4b67c9996c050e83f9.tar.bz2
mana-1c44e1f097d387fcce872f4b67c9996c050e83f9.tar.xz
mana-1c44e1f097d387fcce872f4b67c9996c050e83f9.zip
*** empty log message ***
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui.cpp6
-rw-r--r--src/gui/stats.h4
2 files changed, 8 insertions, 2 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 10021020..18dcfb41 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -582,8 +582,10 @@ int tmw_slider_proc(int msg, DIALOG *d, int c) {
}
//textprintf(gui_bitmap, gui_font,10, 10, makecol(255,255,255), "%i", d->d2);
} else {
- ret = d_slider_proc(msg,d,c);
- }
+ if(d->d1==0)d->d1 = 1;
+ ret = d_slider_proc(msg,d,c);
+ }
+
if (watchdog == 1) {
d->dp2 = (void*)gui__external_slider_callback;
}
diff --git a/src/gui/stats.h b/src/gui/stats.h
index a34dd1cc..4cb29642 100644
--- a/src/gui/stats.h
+++ b/src/gui/stats.h
@@ -21,6 +21,10 @@
*/
+#ifdef WIN32
+#pragma warning(disable:4312)
+#endif
+
#ifndef _STATS_H
#define _STATS_H