diff options
author | smatz <smatz@openttd.org> | 2009-10-26 20:26:34 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-10-26 20:26:34 +0000 |
commit | 5b8863ea574c5fac5eda07b25908495ec5171e65 (patch) | |
tree | 4d9eaba98c106321bbf6720a897b818491a00645 /src | |
parent | 1165817cf226a9550128d3e146ab0901c96d3342 (diff) | |
download | openttd-5b8863ea574c5fac5eda07b25908495ec5171e65.tar.xz |
(svn r17880) -Codechange: pass 'blitter' as parameter instead of determining it again in DrawSmallMapStuff()
Diffstat (limited to 'src')
-rw-r--r-- | src/smallmap_gui.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp index 9a92f2ec1..1b0d9163e 100644 --- a/src/smallmap_gui.cpp +++ b/src/smallmap_gui.cpp @@ -590,9 +590,8 @@ class SmallMapWindow : public Window { * @param proc Pointer to the colour function * @see GetSmallMapPixels(TileIndex) */ - void DrawSmallMapStuff(void *dst, uint xc, uint yc, int pitch, int reps, uint32 mask, GetSmallMapPixels *proc) + void DrawSmallMapStuff(void *dst, uint xc, uint yc, int pitch, int reps, uint32 mask, Blitter *blitter, GetSmallMapPixels *proc) { - Blitter *blitter = BlitterFactoryBase::GetCurrentBlitter(); void *dst_ptr_abs_end = blitter->MoveTo(_screen.dst_ptr, 0, _screen.height); void *dst_ptr_end = blitter->MoveTo(dst_ptr_abs_end, -4, 0); @@ -839,7 +838,7 @@ class SmallMapWindow : public Window { /* number of lines */ int reps = (dpi->height - y + 1) / 2; if (reps > 0) { - this->DrawSmallMapStuff(ptr, tile_x, tile_y, dpi->pitch * 2, reps, mask, _smallmap_draw_procs[this->map_type]); + this->DrawSmallMapStuff(ptr, tile_x, tile_y, dpi->pitch * 2, reps, mask, blitter, _smallmap_draw_procs[this->map_type]); } } |