diff options
Diffstat (limited to 'apps/recorder/sokoban.c')
-rw-r--r-- | apps/recorder/sokoban.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/recorder/sokoban.c b/apps/recorder/sokoban.c index 6ce19e6a41..6947180ec9 100644 --- a/apps/recorder/sokoban.c +++ b/apps/recorder/sokoban.c | |||
@@ -931,8 +931,8 @@ void update_screen(void) { | |||
931 | for (c=0 ; c<20 ; c++) { | 931 | for (c=0 ; c<20 ; c++) { |
932 | switch ( board[b][c] ) { | 932 | switch ( board[b][c] ) { |
933 | case 0: /* this is a black space */ | 933 | case 0: /* this is a black space */ |
934 | lcd_drawrect (c*4, b*4, c*4+3, b*4+3); | 934 | lcd_drawrect (c*4, b*4, 4, 4); |
935 | lcd_drawrect (c*4+1, b*4+1, c*4+2, b*4+2); | 935 | lcd_drawrect (c*4+1, b*4+1, 2, 2); |
936 | break; | 936 | break; |
937 | 937 | ||
938 | case 2: /* this is a wall */ | 938 | case 2: /* this is a wall */ |
@@ -947,11 +947,11 @@ void update_screen(void) { | |||
947 | break; | 947 | break; |
948 | 948 | ||
949 | case 3: /* this is a home location */ | 949 | case 3: /* this is a home location */ |
950 | lcd_drawrect (c*4+1, b*4+1, c*4+2, b*4+2); | 950 | lcd_drawrect (c*4+1, b*4+1, 2, 2); |
951 | break; | 951 | break; |
952 | 952 | ||
953 | case 4: /* this is a box */ | 953 | case 4: /* this is a box */ |
954 | lcd_drawrect (c*4, b*4, c*4+3, b*4+3); | 954 | lcd_drawrect (c*4, b*4, 4, 4); |
955 | break; | 955 | break; |
956 | 956 | ||
957 | case 5: /* this is you */ | 957 | case 5: /* this is you */ |
@@ -963,8 +963,8 @@ void update_screen(void) { | |||
963 | break; | 963 | break; |
964 | 964 | ||
965 | case 7: /* this is a box on a home spot */ | 965 | case 7: /* this is a box on a home spot */ |
966 | lcd_drawrect (c*4, b*4, c*4+3, b*4+3); | 966 | lcd_drawrect (c*4, b*4, 4, 4); |
967 | lcd_drawrect (c*4+1, b*4+1, c*4+2, b*4+2); | 967 | lcd_drawrect (c*4+1, b*4+1, 2, 2); |
968 | break; | 968 | break; |
969 | } | 969 | } |
970 | } | 970 | } |
@@ -976,8 +976,8 @@ void update_screen(void) { | |||
976 | snprintf (s, sizeof(s), "%d", moves); | 976 | snprintf (s, sizeof(s), "%d", moves); |
977 | lcd_putsxy (86, 54, s, 0); | 977 | lcd_putsxy (86, 54, s, 0); |
978 | 978 | ||
979 | lcd_drawrect (80,0,111,31); | 979 | lcd_drawrect (80,0,32,32); |
980 | lcd_drawrect (80,32,111,63); | 980 | lcd_drawrect (80,32,32,64); |
981 | lcd_putsxy (81, 10, "Level", 0); | 981 | lcd_putsxy (81, 10, "Level", 0); |
982 | lcd_putsxy (81, 42, "Moves", 0); | 982 | lcd_putsxy (81, 42, "Moves", 0); |
983 | /* print out the screen */ | 983 | /* print out the screen */ |