summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/grey_core.c
diff options
context:
space:
mode:
authorMoshe Piekarski <dev.rockbox@melachim.net>2020-10-06 13:34:04 -0500
committerWilliam Wilgus <wilgus.william@gmail.com>2020-10-26 12:28:48 -0400
commit12f3ed1699d6bef25bed90ba95cbcc1a6bb4934a (patch)
treecb9850c2c4ea68b7acc816828c4d53dd7c8391f9 /apps/plugins/lib/grey_core.c
parent5d5f8169b53fc989b456b0f0d7940bcf9415cbeb (diff)
downloadrockbox-12f3ed1699d6bef25bed90ba95cbcc1a6bb4934a.tar.gz
rockbox-12f3ed1699d6bef25bed90ba95cbcc1a6bb4934a.zip
make the plugin API frambuffer agnostic
Change-Id: I5abdc231093054c517ff53b9a456997e440e3f6e
Diffstat (limited to 'apps/plugins/lib/grey_core.c')
-rw-r--r--apps/plugins/lib/grey_core.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/lib/grey_core.c b/apps/plugins/lib/grey_core.c
index 55d0684103..9686f1d021 100644
--- a/apps/plugins/lib/grey_core.c
+++ b/apps/plugins/lib/grey_core.c
@@ -845,7 +845,7 @@ static void grey_screendump_hook(int fd)
845 gsrc = _grey_info.values + _GREY_MULUQ(_grey_info.width, gy); 845 gsrc = _grey_info.values + _GREY_MULUQ(_grey_info.width, gy);
846 846
847#if LCD_DEPTH == 2 847#if LCD_DEPTH == 2
848 src = rb->lcd_framebuffer + _GREY_MULUQ(LCD_FBWIDTH, y); 848 src = *rb->lcd_framebuffer + _GREY_MULUQ(LCD_FBWIDTH, y);
849 849
850 do 850 do
851 { 851 {
@@ -876,7 +876,7 @@ static void grey_screendump_hook(int fd)
876 876
877#if LCD_DEPTH == 1 877#if LCD_DEPTH == 1
878 mask = BIT_N(y & 7); 878 mask = BIT_N(y & 7);
879 src = rb->lcd_framebuffer + _GREY_MULUQ(LCD_WIDTH, y >> 3); 879 src = *rb->lcd_framebuffer + _GREY_MULUQ(LCD_WIDTH, y >> 3);
880 880
881 do 881 do
882 { 882 {
@@ -908,7 +908,7 @@ static void grey_screendump_hook(int fd)
908 908
909#elif LCD_DEPTH == 2 909#elif LCD_DEPTH == 2
910 shift = 2 * (y & 3); 910 shift = 2 * (y & 3);
911 src = rb->lcd_framebuffer + _GREY_MULUQ(LCD_WIDTH, y >> 2); 911 src = *rb->lcd_framebuffer + _GREY_MULUQ(LCD_WIDTH, y >> 2);
912 912
913 do 913 do
914 { 914 {
@@ -933,7 +933,7 @@ static void grey_screendump_hook(int fd)
933 933
934#if LCD_DEPTH == 2 934#if LCD_DEPTH == 2
935 shift = y & 7; 935 shift = y & 7;
936 src = rb->lcd_framebuffer + _GREY_MULUQ(LCD_WIDTH, y >> 3); 936 src = *rb->lcd_framebuffer + _GREY_MULUQ(LCD_WIDTH, y >> 3);
937 937
938 do 938 do
939 { 939 {