diff options
Diffstat (limited to 'apps/plugins/superdom.c')
-rw-r--r-- | apps/plugins/superdom.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/apps/plugins/superdom.c b/apps/plugins/superdom.c index c047ed454a..fff141236e 100644 --- a/apps/plugins/superdom.c +++ b/apps/plugins/superdom.c | |||
@@ -355,12 +355,10 @@ void draw_board(void) { | |||
355 | } | 355 | } |
356 | rb->lcd_set_foreground(LCD_BLACK); | 356 | rb->lcd_set_foreground(LCD_BLACK); |
357 | for(i=0;i<=10;i++) { /* Draw Horizontal lines */ | 357 | for(i=0;i<=10;i++) { /* Draw Horizontal lines */ |
358 | rb->lcd_drawline(MARGIN, MARGIN+(BOX_HEIGHT*i), MARGIN+(BOX_WIDTH*10), | 358 | rb->lcd_hline(MARGIN, MARGIN+(BOX_WIDTH*10), MARGIN+(BOX_HEIGHT*i)); |
359 | MARGIN+(BOX_HEIGHT*i)); | ||
360 | } | 359 | } |
361 | for(i=0;i<=10;i++) { /* Draw Vertical lines */ | 360 | for(i=0;i<=10;i++) { /* Draw Vertical lines */ |
362 | rb->lcd_drawline(MARGIN+(BOX_WIDTH*i),MARGIN, MARGIN+(BOX_WIDTH*i), | 361 | rb->lcd_vline(MARGIN+(BOX_WIDTH*i), MARGIN, MARGIN+(BOX_HEIGHT*10)); |
363 | MARGIN+(BOX_HEIGHT*10)); | ||
364 | } | 362 | } |
365 | rb->lcd_update(); | 363 | rb->lcd_update(); |
366 | } | 364 | } |
@@ -688,14 +686,12 @@ int get_number(char* param, int* value) { | |||
688 | /* Draw a 3x4 grid */ | 686 | /* Draw a 3x4 grid */ |
689 | int i,j,x=0,y=0; | 687 | int i,j,x=0,y=0; |
690 | for(i=0;i<=3;i++) { /* Vertical lines */ | 688 | for(i=0;i<=3;i++) { /* Vertical lines */ |
691 | rb->lcd_drawline(NUM_MARGIN_X+(NUM_BOX_WIDTH*i), NUM_MARGIN_Y, | 689 | rb->lcd_vline(NUM_MARGIN_X+(NUM_BOX_WIDTH*i), NUM_MARGIN_Y, |
692 | NUM_MARGIN_X+(NUM_BOX_WIDTH*i), | 690 | NUM_MARGIN_Y+(4*NUM_BOX_HEIGHT)); |
693 | NUM_MARGIN_Y+(4*NUM_BOX_HEIGHT)); | ||
694 | } | 691 | } |
695 | for(i=0;i<=4;i++) { /* Horizontal lines */ | 692 | for(i=0;i<=4;i++) { /* Horizontal lines */ |
696 | rb->lcd_drawline(NUM_MARGIN_X, NUM_MARGIN_Y+(i*NUM_BOX_HEIGHT), | 693 | rb->lcd_hline(NUM_MARGIN_X, NUM_MARGIN_X+(3*NUM_BOX_WIDTH), |
697 | NUM_MARGIN_X+(3*NUM_BOX_WIDTH), | 694 | NUM_MARGIN_Y+(NUM_BOX_HEIGHT*i)); |
698 | NUM_MARGIN_Y+(NUM_BOX_HEIGHT*i)); | ||
699 | } | 695 | } |
700 | int temp = 1; | 696 | int temp = 1; |
701 | for(i=0;i<3;i++) { | 697 | for(i=0;i<3;i++) { |