1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
Description: Keep level display visible in title screen
In title screen, the position of the text showing the level depends on the
value of the level itself. The higher is the level, the lower is the text.
When the level is too big, the text starts overlapping with the game name and
then disappear at the bottom of the screen. This patch gives a maximum
position to the level display position.
Author: Thomas Preud'homme <robotux@celest.fr>
Origin: other
Bug-Debian: http://bugs.debian.org/602808
Forwarded: no
Last-Update: 2012-06-17
--- a/src/abagames/tt/title.d
+++ b/src/abagames/tt/title.d
@@ -278,6 +278,8 @@
private void calcCursorPos(ref float x, ref float y, int gd, int lv) {
x = 460 + gd * 70;
y = 90;
+ if (lv > 180)
+ lv = 180;
if (lv > 1) {
y += 30 + lv;
x -= lv * 0.33f;
|