summaryrefslogtreecommitdiff
path: root/apps/plugins/imageviewer/imageviewer.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2010-06-04 13:22:50 +0000
committerMichael Sevakis <jethead71@rockbox.org>2010-06-04 13:22:50 +0000
commite63e84a5dfb18e9b7eca8dabcd2d58ceac342529 (patch)
tree25989313fa6d7ea9f59ae8bdb1e56fe69f5e1a24 /apps/plugins/imageviewer/imageviewer.c
parentbc26fe7a96d6f5e443003cb871dcb4bfba525352 (diff)
downloadrockbox-e63e84a5dfb18e9b7eca8dabcd2d58ceac342529.tar.gz
rockbox-e63e84a5dfb18e9b7eca8dabcd2d58ceac342529.zip
Convert some more stuff to mylcd_ and support pgfx as well.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26543 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/imageviewer/imageviewer.c')
-rw-r--r--apps/plugins/imageviewer/imageviewer.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/apps/plugins/imageviewer/imageviewer.c b/apps/plugins/imageviewer/imageviewer.c
index ed41719cca..0fd25e7b29 100644
--- a/apps/plugins/imageviewer/imageviewer.c
+++ b/apps/plugins/imageviewer/imageviewer.c
@@ -416,10 +416,10 @@ static void pan_view_right(struct image_info *info)
416 move = MIN(HSCROLL, info->width - info->x - LCD_WIDTH); 416 move = MIN(HSCROLL, info->width - info->x - LCD_WIDTH);
417 if (move > 0) 417 if (move > 0)
418 { 418 {
419 MYXLCD(scroll_left)(move); /* scroll left */ 419 mylcd_ub_scroll_left(move); /* scroll left */
420 info->x += move; 420 info->x += move;
421 draw_image_rect(info, LCD_WIDTH - move, 0, move, info->height-info->y); 421 draw_image_rect(info, LCD_WIDTH - move, 0, move, info->height-info->y);
422 MYLCD_UPDATE(); 422 mylcd_ub_update();
423 } 423 }
424} 424}
425 425
@@ -432,10 +432,10 @@ static void pan_view_left(struct image_info *info)
432 move = MIN(HSCROLL, info->x); 432 move = MIN(HSCROLL, info->x);
433 if (move > 0) 433 if (move > 0)
434 { 434 {
435 MYXLCD(scroll_right)(move); /* scroll right */ 435 mylcd_ub_scroll_right(move); /* scroll right */
436 info->x -= move; 436 info->x -= move;
437 draw_image_rect(info, 0, 0, move, info->height-info->y); 437 draw_image_rect(info, 0, 0, move, info->height-info->y);
438 MYLCD_UPDATE(); 438 mylcd_ub_update();
439 } 439 }
440} 440}
441 441
@@ -448,7 +448,7 @@ static void pan_view_up(struct image_info *info)
448 move = MIN(VSCROLL, info->y); 448 move = MIN(VSCROLL, info->y);
449 if (move > 0) 449 if (move > 0)
450 { 450 {
451 MYXLCD(scroll_down)(move); /* scroll down */ 451 mylcd_ub_scroll_down(move); /* scroll down */
452 info->y -= move; 452 info->y -= move;
453#if defined(HAVE_LCD_COLOR) && defined(JPEG_VIEWER) 453#if defined(HAVE_LCD_COLOR) && defined(JPEG_VIEWER)
454 if (settings.jpeg_dither_mode == DITHER_DIFFUSION) 454 if (settings.jpeg_dither_mode == DITHER_DIFFUSION)
@@ -459,7 +459,7 @@ static void pan_view_up(struct image_info *info)
459 } 459 }
460#endif 460#endif
461 draw_image_rect(info, 0, 0, info->width-info->x, move); 461 draw_image_rect(info, 0, 0, info->width-info->x, move);
462 MYLCD_UPDATE(); 462 mylcd_ub_update();
463 } 463 }
464} 464}
465 465
@@ -472,7 +472,7 @@ static void pan_view_down(struct image_info *info)
472 move = MIN(VSCROLL, info->height - info->y - LCD_HEIGHT); 472 move = MIN(VSCROLL, info->height - info->y - LCD_HEIGHT);
473 if (move > 0) 473 if (move > 0)
474 { 474 {
475 MYXLCD(scroll_up)(move); /* scroll up */ 475 mylcd_ub_scroll_up(move); /* scroll up */
476 info->y += move; 476 info->y += move;
477#if defined(HAVE_LCD_COLOR) && defined(JPEG_VIEWER) 477#if defined(HAVE_LCD_COLOR) && defined(JPEG_VIEWER)
478 if (settings.jpeg_dither_mode == DITHER_DIFFUSION) 478 if (settings.jpeg_dither_mode == DITHER_DIFFUSION)
@@ -499,7 +499,7 @@ static void pan_view_down(struct image_info *info)
499 info->y++; 499 info->y++;
500 } 500 }
501#endif 501#endif
502 MYLCD_UPDATE(); 502 mylcd_ub_update();
503 } 503 }
504} 504}
505 505
@@ -611,7 +611,7 @@ static int scroll_bmp(struct image_info *info)
611#else 611#else
612 draw_image_rect(info, 0, 0, 612 draw_image_rect(info, 0, 0,
613 info->width-info->x, info->height-info->y); 613 info->width-info->x, info->height-info->y);
614 MYLCD_UPDATE(); 614 mylcd_ub_update();
615#endif 615#endif
616 break; 616 break;
617 617
@@ -783,10 +783,10 @@ static int load_and_show(char* filename, struct image_info *info)
783 rb->lcd_update(); 783 rb->lcd_update();
784 } 784 }
785 785
786 MYLCD(clear_display)(); 786 mylcd_ub_clear_display();
787 draw_image_rect(info, 0, 0, 787 draw_image_rect(info, 0, 0,
788 info->width-info->x, info->height-info->y); 788 info->width-info->x, info->height-info->y);
789 MYLCD_UPDATE(); 789 mylcd_ub_update();
790 790
791#ifdef USEGSLIB 791#ifdef USEGSLIB
792 grey_show(true); /* switch on greyscale overlay */ 792 grey_show(true); /* switch on greyscale overlay */