forked from mirror/OpenTTD
(svn r18121) -Codechange: pass the maximum left/right location to the Draw*Engine functions
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user