Shift bit display up
authorNeil <neil@dip.sun.ac.za>
Sat, 17 May 2014 10:05:50 +0000 (12:05 +0200)
committerNeil <neil@dip.sun.ac.za>
Sat, 17 May 2014 10:16:01 +0000 (12:16 +0200)
naja/widgets/info_area.py

index ef3f017fbc4b661efaa1d42ed89909909b11961c..5baa5171018075c0da533e99bbcf7fa442608806 100644 (file)
@@ -53,7 +53,7 @@ class InfoAreaWidget(Widget):
             (INFO_LEFT_PADDING, 0), TITLES[self.state.gameboard.player_mode],
             colour=PALETTE.WHITE)
         title.render(self.surface)
             (INFO_LEFT_PADDING, 0), TITLES[self.state.gameboard.player_mode],
             colour=PALETTE.WHITE)
         title.render(self.surface)
-        y_offset = title.surface.get_rect().height + 8
+        y_offset = title.surface.get_rect().height - 4
 
         # TODO: Make this better.
         bits_text = ''.join('1' if bit in self.card.bitwise_operand else '0'
 
         # TODO: Make this better.
         bits_text = ''.join('1' if bit in self.card.bitwise_operand else '0'
@@ -66,7 +66,7 @@ class InfoAreaWidget(Widget):
                                   colour=PALETTE.LIGHT_TURQUOISE,
                                   bg_colour=PALETTE.BLACK)
         card_bits.render(self.surface)
                                   colour=PALETTE.LIGHT_TURQUOISE,
                                   bg_colour=PALETTE.BLACK)
         card_bits.render(self.surface)
-        y_offset += card_bits.surface.get_rect().height + 8
+        y_offset += card_bits.surface.get_rect().height + 4
 
         for choice, action in enumerate(self.card.actions):
             y_offset = self.prepare_action(choice, action, y_offset)
 
         for choice, action in enumerate(self.card.actions):
             y_offset = self.prepare_action(choice, action, y_offset)