summaryrefslogtreecommitdiff
path: root/intro_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2004-12-02 22:53:07 +0000
committertron <tron@openttd.org>2004-12-02 22:53:07 +0000
commitfdb447ac55fc7faffe6b7477a4ecfa7733b9a03d (patch)
tree822a14c0bf1d92e45c85d4ce62bc58b7b6cef6c7 /intro_gui.c
parent2c88f958edc2ad87c92ac23b727e27e2ddbe710b (diff)
downloadopenttd-fdb447ac55fc7faffe6b7477a4ecfa7733b9a03d.tar.xz
(svn r901) Small step in the process to clean up the DPARAM mess:
- reduce to 2 sizes (*DParam64 for 64bit values, *DParam for the rest) - use inline functions instead of macros - add assert()s to check for buffer overruns
Diffstat (limited to 'intro_gui.c')
-rw-r--r--intro_gui.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/intro_gui.c b/intro_gui.c
index 750ffb16b..0048ca39d 100644
--- a/intro_gui.c
+++ b/intro_gui.c
@@ -44,7 +44,7 @@ static void SelectGameWndProc(Window *w, WindowEvent *e) {
case WE_PAINT:
w->click_state = (w->click_state & ~(0xC0) & ~(0xF << 12)) | (1 << (_new_opt.landscape+12)) | (!_networking?(1<<6):(1<<7));
w->disabled_state = _networking ? 0x30 : 0;
- SET_DPARAM16(0, STR_6801_EASY + _new_opt.diff_level);
+ SetDParam(0, STR_6801_EASY + _new_opt.diff_level);
DrawWindowWidgets(w);
break;
@@ -190,15 +190,15 @@ static void AskAbandonGameWndProc(Window *w, WindowEvent *e) {
case WE_PAINT:
DrawWindowWidgets(w);
#if defined(_WIN32)
- SET_DPARAM16(0, STR_0133_WINDOWS);
+ SetDParam(0, STR_0133_WINDOWS);
#elif defined(__APPLE__)
- SET_DPARAM16(0, STR_0135_OSX);
+ SetDParam(0, STR_0135_OSX);
#elif defined(__BEOS__)
- SET_DPARAM16(0, STR_OSNAME_BEOS);
+ SetDParam(0, STR_OSNAME_BEOS);
#elif defined(__MORPHOS__)
- SET_DPARAM16(0, STR_OSNAME_MORPHOS);
+ SetDParam(0, STR_OSNAME_MORPHOS);
#else
- SET_DPARAM16(0, STR_0134_UNIX);
+ SetDParam(0, STR_0134_UNIX);
#endif
DrawStringMultiCenter(0x5A, 0x26, STR_00CA_ARE_YOU_SURE_YOU_WANT_TO, 178);
return;