summaryrefslogtreecommitdiff
path: root/apps/plugins/goban/display.c
diff options
context:
space:
mode:
authorMustapha Senhaji <moos@rockbox.org>2009-02-19 23:51:47 +0000
committerMustapha Senhaji <moos@rockbox.org>2009-02-19 23:51:47 +0000
commit07ae1e4fb9a1fd9d6ce9c48c5300b53e87303937 (patch)
treedf5c68d24e5ce84f171cb97ab309da8ed828cb8f /apps/plugins/goban/display.c
parent56ad29bab89bfdb5eaa95a4da906f8b5d68b950b (diff)
downloadrockbox-07ae1e4fb9a1fd9d6ce9c48c5300b53e87303937.tar.gz
rockbox-07ae1e4fb9a1fd9d6ce9c48c5300b53e87303937.zip
FS#9930 by Joshua Simmons: Code clean up the goban plugin a bit, mostly by improving comments. No functional changes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20060 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/goban/display.c')
-rw-r--r--apps/plugins/goban/display.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/apps/plugins/goban/display.c b/apps/plugins/goban/display.c
index 35a5de45f6..55ea0d6a4a 100644
--- a/apps/plugins/goban/display.c
+++ b/apps/plugins/goban/display.c
@@ -146,11 +146,6 @@ draw_all_marks (void)
146 char to_display[2]; 146 char to_display[2];
147 int width, height; 147 int width, height;
148 148
149 if (intersection_size < 7)
150 {
151 DEBUGF ("screen too small to draw labels\n");
152 }
153
154 to_display[0] = 149 to_display[0] =
155 display_marks[x + y * board_width] & (~(1 << 7)); 150 display_marks[x + y * board_width] & (~(1 << 7));
156 to_display[1] = '\0'; 151 to_display[1] = '\0';
@@ -188,7 +183,7 @@ draw_all_marks (void)
188 183
189 switch (display_marks[x + y * board_width]) 184 switch (display_marks[x + y * board_width])
190 { 185 {
191 // moves, 'mark', 'square' 186 /* moves, 'mark', 'square' */
192 case 'b': 187 case 'b':
193 case 'w': 188 case 'w':
194 if (intersection_size <= 5) 189 if (intersection_size <= 5)
@@ -886,7 +881,12 @@ void
886setup_display (void) 881setup_display (void)
887{ 882{
888 set_zoom_display (0); /* 0 means set to default */ 883 set_zoom_display (0); /* 0 means set to default */
889 /* cursor starts on tengen (middle of the board) */ 884
885 /* The cursor starts out in the top right of the board
886 * (on the hoshi point for most board sizes), unless the board
887 * is really small in which case the cursor starts at the center
888 * of the board.
889 */
890 int start_x, start_y; 890 int start_x, start_y;
891 if (board_width >= 7) 891 if (board_width >= 7)
892 { 892 {
@@ -915,8 +915,6 @@ setup_display (void)
915static void 915static void
916draw_cursor (unsigned short pos) 916draw_cursor (unsigned short pos)
917{ 917{
918 /* int saved_draw_mode = rb->lcd_get_drawmode(); */
919
920 if (!on_board (pos)) 918 if (!on_board (pos))
921 { 919 {
922 return; 920 return;