diff options
author | rubidium <rubidium@openttd.org> | 2009-11-16 17:15:42 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-11-16 17:15:42 +0000 |
commit | 1c5a92ae98954adb4c8e3841577ad771f79aaa47 (patch) | |
tree | fe3616b09774c5199a985cd3bf9461134335caad /src/news_gui.cpp | |
parent | 179b924173e250de707102f319da03d609c482b4 (diff) | |
download | openttd-1c5a92ae98954adb4c8e3841577ad771f79aaa47.tar.xz |
(svn r18121) -Codechange: pass the maximum left/right location to the Draw*Engine functions
Diffstat (limited to 'src/news_gui.cpp')
-rw-r--r-- | src/news_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/news_gui.cpp b/src/news_gui.cpp index 8f94646b8..55aec1c22 100644 --- a/src/news_gui.cpp +++ b/src/news_gui.cpp @@ -427,7 +427,7 @@ struct NewsWindow : Window { case NTW_VEH_SPR: { assert(this->ni->reftype1 == NR_ENGINE); EngineID engine = this->ni->ref1; - DrawVehicleEngine((r.left + r.right) / 2, (r.top + r.bottom) / 2, engine, GetEnginePalette(engine, _local_company)); + DrawVehicleEngine(r.left, r.right, (r.left + r.right) / 2, (r.top + r.bottom) / 2, engine, GetEnginePalette(engine, _local_company)); GfxFillRect(r.left, r.top, r.right, r.bottom, PALETTE_TO_STRUCT_GREY, FILLRECT_RECOLOUR); break; } |