From: Neil Date: Sat, 17 May 2014 10:05:50 +0000 (+0200) Subject: Shift bit display up X-Git-Tag: 0.1~134 X-Git-Url: https://git.ctpug.org.za/?p=naja.git;a=commitdiff_plain;h=65d95ee49f77ae98c4416b3940eeaa0ab7d7c5ff Shift bit display up --- diff --git a/naja/widgets/info_area.py b/naja/widgets/info_area.py index ef3f017..5baa517 100644 --- a/naja/widgets/info_area.py +++ b/naja/widgets/info_area.py @@ -53,7 +53,7 @@ class InfoAreaWidget(Widget): (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' @@ -66,7 +66,7 @@ class InfoAreaWidget(Widget): 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)