Fix digit font drawing
This commit is contained in:
parent
03b92efba5
commit
7f1e776bf6
@ -33,8 +33,6 @@ private:
|
||||
virtual float getScalingFactorOne() const OVERRIDE { return 0.7f; }
|
||||
// ------------------------------------------------------------------------
|
||||
virtual unsigned int getScalingFactorTwo() const OVERRIDE { return 40; }
|
||||
// ------------------------------------------------------------------------
|
||||
virtual unsigned int getVerticalDrawOffset() const OVERRIDE { return 20; }
|
||||
|
||||
public:
|
||||
LEAK_CHECK()
|
||||
|
@ -192,8 +192,6 @@ private:
|
||||
virtual unsigned int getScalingFactorTwo() const = 0;
|
||||
// ------------------------------------------------------------------------
|
||||
virtual std::vector<std::string> getFacesList() const = 0;
|
||||
// ------------------------------------------------------------------------
|
||||
virtual unsigned int getVerticalDrawOffset() const { return 0; }
|
||||
|
||||
public:
|
||||
LEAK_CHECK();
|
||||
|
@ -312,7 +312,7 @@ void RaceGUI::drawGlobalTimer()
|
||||
}
|
||||
}
|
||||
|
||||
core::rect<s32> pos(irr_driver->getActualScreenSize().Width - dist_from_right, 10,
|
||||
core::rect<s32> pos(irr_driver->getActualScreenSize().Width - dist_from_right, 30,
|
||||
irr_driver->getActualScreenSize().Width , 50);
|
||||
|
||||
// special case : when 3 players play, use available 4th space for such things
|
||||
@ -840,7 +840,7 @@ void RaceGUI::drawLap(const AbstractKart* kart,
|
||||
if (lap < 0 ) return;
|
||||
|
||||
core::recti pos;
|
||||
pos.UpperLeftCorner.Y = viewport.UpperLeftCorner.Y;
|
||||
pos.UpperLeftCorner.Y = viewport.UpperLeftCorner.Y + m_font_height;
|
||||
// If the time display in the top right is in this viewport,
|
||||
// move the lap/rank display down a little bit so that it is
|
||||
// displayed under the time.
|
||||
|
Loading…
Reference in New Issue
Block a user