Hopefully fixed nitrobar going off-screen at large resolutions : use a percentage of screensize, or an sbolute size multiplied by the scale parameter, but not both toghether.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6191 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2010-10-01 23:46:46 +00:00
parent 12a7b29159
commit 5eb4aaf4ef

View File

@ -710,7 +710,7 @@ void RaceGUI::drawEnergyMeter (const Kart *kart,
float state = (float)(kart->getEnergy()) / MAX_ITEMS_COLLECTED;
//int y = (int)(250 * scaling.Y) + viewport.UpperLeftCorner.Y;
int w = (int)(16 * scaling.X);
int h = (int)(UserConfigParams::m_height/4 * scaling.Y);
int h = (int)(viewport.getHeight()/3);
int x = viewport.LowerRightCorner.X - w - 5;
int y = viewport.LowerRightCorner.Y - (int)(250 * scaling.Y);