Move hint up in preparation for state mode display (i.e. puzzle vs difficulty).
authorSimon Cross <hodgestar@gmail.com>
Sat, 17 May 2014 11:50:55 +0000 (13:50 +0200)
committerSimon Cross <hodgestar@gmail.com>
Sat, 17 May 2014 11:51:09 +0000 (13:51 +0200)
naja/widgets/info_area.py

index a122b6fdef08c4dfa1b782590b9584218b4f9d61..f6fde804c2e22aaaf2cd2e7e6e93d8eeca75f60a 100644 (file)
@@ -6,7 +6,7 @@ import pygame.locals as pgl
 
 from naja.constants import (
     INFO_SIZE, ACT, KEYS, EXAMINE, PALETTE,
-    ACTION_TEXT_OFFSET, INFO_LEFT_PADDING)
+    ACTION_TEXT_OFFSET, INFO_LEFT_PADDING, BIT_SIZE)
 from naja.events import finish_event
 from naja.resources import resources
 from naja.resources.mutators import EIGHT_BIT, blender
@@ -80,7 +80,7 @@ class InfoAreaWidget(Widget):
                              box_width=(INFO_SIZE[0] - INFO_LEFT_PADDING - 8))
         hint.prepare()
         y_offset = (
-            INFO_SIZE[1] - hint.surface.get_rect().height - INFO_LEFT_PADDING
+            INFO_SIZE[1] - hint.surface.get_rect().height - BIT_SIZE[1]
             - 2)
         self.surface.blit(hint.surface, (INFO_LEFT_PADDING, y_offset))