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:
parent
12a7b29159
commit
5eb4aaf4ef
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user