(svn r17832) -Codechange: make Alberth happier

This commit is contained in:
smatz 2009-10-20 21:27:44 +00:00
parent 232d7bc4f4
commit 396d16e2ec

View File

@ -590,7 +590,7 @@ class SmallMapWindow : public Window {
* @param proc Pointer to the colour function * @param proc Pointer to the colour function
* @see GetSmallMapPixels(TileIndex) * @see GetSmallMapPixels(TileIndex)
*/ */
inline 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, GetSmallMapPixels *proc)
{ {
Blitter *blitter = BlitterFactoryBase::GetCurrentBlitter(); Blitter *blitter = BlitterFactoryBase::GetCurrentBlitter();
void *dst_ptr_abs_end = blitter->MoveTo(_screen.dst_ptr, 0, _screen.height); void *dst_ptr_abs_end = blitter->MoveTo(_screen.dst_ptr, 0, _screen.height);
@ -629,7 +629,7 @@ class SmallMapWindow : public Window {
* @param dpi the part of the smallmap to be drawn into * @param dpi the part of the smallmap to be drawn into
* @param blitter current blitter * @param blitter current blitter
*/ */
inline void DrawVehicles(DrawPixelInfo *dpi, Blitter *blitter) void DrawVehicles(DrawPixelInfo *dpi, Blitter *blitter)
{ {
const Vehicle *v; const Vehicle *v;
FOR_ALL_VEHICLES(v) { FOR_ALL_VEHICLES(v) {
@ -678,7 +678,7 @@ class SmallMapWindow : public Window {
* Adds town names to the smallmap. * Adds town names to the smallmap.
* @param dpi the part of the smallmap to be drawn into * @param dpi the part of the smallmap to be drawn into
*/ */
inline void DrawTowns(DrawPixelInfo *dpi) void DrawTowns(DrawPixelInfo *dpi)
{ {
const Town *t; const Town *t;
FOR_ALL_TOWNS(t) { FOR_ALL_TOWNS(t) {
@ -729,7 +729,7 @@ class SmallMapWindow : public Window {
/** /**
* Adds map indicators to the smallmap. * Adds map indicators to the smallmap.
*/ */
inline void DrawMapIndicators() void DrawMapIndicators()
{ {
/* Find main viewport. */ /* Find main viewport. */
const ViewPort *vp = FindWindowById(WC_MAIN_WINDOW, 0)->viewport; const ViewPort *vp = FindWindowById(WC_MAIN_WINDOW, 0)->viewport;