diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/gui.cpp | 6 | ||||
-rw-r--r-- | src/gui/stats.h | 4 |
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 |