diff options
author | tron <tron@openttd.org> | 2006-08-28 07:33:51 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-08-28 07:33:51 +0000 |
commit | 2eb76813edab81cbc3bcfbd10737979d7d5439f2 (patch) | |
tree | 7bdfd7c5d958ecb70ce91a2e6f5a707140d4f90d /rail_gui.c | |
parent | 523519c8ec4db318d151051a9b6281767136f314 (diff) | |
download | openttd-2eb76813edab81cbc3bcfbd10737979d7d5439f2.tar.xz |
(svn r6184) Remove the unused (because it was NULL in all callers) second parameter of FillDrawPixelInfo() and simplify some expressions
Diffstat (limited to 'rail_gui.c')
-rw-r--r-- | rail_gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rail_gui.c b/rail_gui.c index 49e9c8844..70db6a7d8 100644 --- a/rail_gui.c +++ b/rail_gui.c @@ -674,7 +674,7 @@ static void StationBuildWndProc(Window *w, WindowEvent *e) y_offset = newstations ? 90 : 0; /* Set up a clipping area for the '/' station preview */ - if (FillDrawPixelInfo(&tmp_dpi, NULL, 7, 26 + y_offset, 66, 48)) { + if (FillDrawPixelInfo(&tmp_dpi, 7, 26 + y_offset, 66, 48)) { old_dpi = _cur_dpi; _cur_dpi = &tmp_dpi; if (!DrawStationTile(32, 16, _cur_railtype, AXIS_X, _railstation.station_class, _railstation.station_type)) { @@ -684,7 +684,7 @@ static void StationBuildWndProc(Window *w, WindowEvent *e) } /* Set up a clipping area for the '\' station preview */ - if (FillDrawPixelInfo(&tmp_dpi, NULL, 75, 26 + y_offset, 66, 48)) { + if (FillDrawPixelInfo(&tmp_dpi, 75, 26 + y_offset, 66, 48)) { old_dpi = _cur_dpi; _cur_dpi = &tmp_dpi; if (!DrawStationTile(32, 16, _cur_railtype, AXIS_Y, _railstation.station_class, _railstation.station_type)) { |