Fix digit font drawing

This commit is contained in:
Benau 2016-07-19 16:47:39 +08:00
parent 03b92efba5
commit 7f1e776bf6
3 changed files with 2 additions and 6 deletions

View File

@ -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()

View File

@ -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();

View File

@ -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.