summaryrefslogtreecommitdiff
path: root/smallmap_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 /smallmap_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 'smallmap_gui.c')
-rw-r--r--smallmap_gui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/smallmap_gui.c b/smallmap_gui.c
index d9c9714b3..3cbca89a8 100644
--- a/smallmap_gui.c
+++ b/smallmap_gui.c
@@ -798,7 +798,7 @@ skip_column:
y + 6 > dpi->top &&
y < dpi->top + dpi->height) {
// And draw it.
- SET_DPARAM16(0, t->index);
+ SetDParam(0, t->index);
DrawString(x, y, STR_2056, 12);
}
}
@@ -846,7 +846,7 @@ static void SmallMapWindowProc(Window *w, WindowEvent *e)
/* draw the window */
- SET_DPARAM16(0, STR_00E5_CONTOURS + _smallmap_type);
+ SetDParam(0, STR_00E5_CONTOURS + _smallmap_type);
DrawWindowWidgets(w);
/* draw the legend */
@@ -1019,7 +1019,7 @@ static void ExtraViewPortWndProc(Window *w, WindowEvent *e)
switch(e->event) {
case WE_PAINT: {
// set the number in the title bar
- SET_DPARAM16(0, (w->window_number+1));
+ SetDParam(0, (w->window_number+1));
DrawWindowWidgets(w);
DrawWindowViewport(w);