Sorry, this patch should work better

Regards.
diff -Nru torus-trooper-0.22.dfsg1/debian/changelog torus-trooper-0.22.dfsg1/debian/changelog
--- torus-trooper-0.22.dfsg1/debian/changelog	2012-03-29 21:50:00.000000000 +0200
+++ torus-trooper-0.22.dfsg1/debian/changelog	2012-06-17 21:28:30.000000000 +0200
@@ -1,3 +1,11 @@
+torus-trooper (0.22.dfsg1-8.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Force a maximum position for level displaying in title screen
+    (Closes: 602808).
+
+ -- Thomas Preud'homme <robo...@celest.fr>  Sat, 16 Jun 2012 15:07:23 +0200
+
 torus-trooper (0.22.dfsg1-8) unstable; urgency=low
 
   * Team upload.
diff -Nru torus-trooper-0.22.dfsg1/debian/patches/lowest-level-position-602808.patch torus-trooper-0.22.dfsg1/debian/patches/lowest-level-position-602808.patch
--- torus-trooper-0.22.dfsg1/debian/patches/lowest-level-position-602808.patch	1970-01-01 01:00:00.000000000 +0100
+++ torus-trooper-0.22.dfsg1/debian/patches/lowest-level-position-602808.patch	2012-06-17 21:45:05.000000000 +0200
@@ -0,0 +1,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 <robo...@celest.fr>
+Origin: other
+Bug-Debian: http://bugs.debian.org/602808
+Forwarded: no
+Last-Update: 2012-06-17
+
+--- torus-trooper-0.22.dfsg1.orig/src/abagames/tt/title.d
++++ torus-trooper-0.22.dfsg1/src/abagames/tt/title.d
+@@ -278,6 +278,8 @@ public class TitleManager {
+   private void calcCursorPos(inout float x, inout 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;
diff -Nru torus-trooper-0.22.dfsg1/debian/patches/series torus-trooper-0.22.dfsg1/debian/patches/series
--- torus-trooper-0.22.dfsg1/debian/patches/series	2010-03-18 00:03:28.000000000 +0100
+++ torus-trooper-0.22.dfsg1/debian/patches/series	2012-06-17 21:40:22.000000000 +0200
@@ -9,3 +9,4 @@
 level-select-444948.patch
 avoid-segfault-when-sdl-fails.patch
 d1.043.patch
+lowest-level-position-602808.patch

Attachment: signature.asc
Description: This is a digitally signed message part.



Reply via email to