Correct location of new speedometers when playing with 3 or 4 players

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7396 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria
2011-01-14 00:07:52 +00:00
parent 70154fabfc
commit 98cb8b14d9

View File

@@ -747,6 +747,8 @@ void RaceGUI::drawEnergyMeter(int x, int y, const Kart *kart,
int h = (int)(viewport.getHeight()/3);
int w = h/4; // gauge image is so 1:4
y -= h;
x -= w;
// Background
@@ -803,7 +805,7 @@ void RaceGUI::drawSpeedAndEnergy(const Kart* kart, const core::recti &viewport,
int meter_height = (int)(SPEEDWIDTH*minRatio);
drawEnergyMeter(viewport.LowerRightCorner.X,
viewport.LowerRightCorner.Y - meter_height*2, kart,
viewport.LowerRightCorner.Y - meter_height*0.75f, kart,
viewport, scaling);
// First draw the meter (i.e. the background which contains the numbers etc.