Bug#602808: [torus-trooper] Confine level display in visible area

Thomas Preud'homme robotux at celest.fr
Sun Jun 17 21:37:58 UTC 2012


Greetings,

I discovered torus-trooper recently and I really loved it. Since I enjoyed it, 
I went on Debian bug tracker to see if there was any bug open so that I can 
contribute back a bit. I then stumbled accross [1] about the visibility of the 
level display in the title screen. Indeed, the position of the level display 
is function of the value of the level itself. It seems this was done in order 
for the cursor to have a movement when changing the level of a given 
difficulty (by hitting the up/down arrows). Unfortunetely, this means when the 
score is too big the level is displayed in an area outside of the windew.

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=602808

I thus decided to make a patch for this which I attach to this email. The 
patch is very simple, it restrict the display to the visible area by 
pretending the level is never higher than 180. By this I mean a level greater 
than 180 is displayed as if it's 180, without changing the actual level. As a 
side effect, when such a situation happen, the cursor will then remain static 
when trying to select a level between 180 and the current level.

Anyway, I thought you might consider applying this patch, or maybe rework it.

Best regards,

Thomas Preud'homme
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lowest-level-position-602808.patch
Type: text/x-patch
Size: 1021 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20120617/c223a2bb/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20120617/c223a2bb/attachment.pgp>


More information about the Pkg-games-devel mailing list