forked from len0rd/rockbox
make the plugin API frambuffer agnostic
Change-Id: I5abdc231093054c517ff53b9a456997e440e3f6e
This commit is contained in:
parent
5d5f8169b5
commit
12f3ed1699
25 changed files with 92 additions and 93 deletions
|
|
@ -58,7 +58,7 @@ void update_screen(void)
|
|||
byte *scrptr;
|
||||
scrptr = (byte *) SPNM(image);
|
||||
*/
|
||||
frameb = rb->lcd_framebuffer;
|
||||
frameb = *rb->lcd_framebuffer;
|
||||
for ( y = 0 ; y < HEIGHT*WIDTH; y++ ){
|
||||
frameb[y] = FB_SCALARPACK(_16bpp_colors[(unsigned)sp_image[y]]);
|
||||
}
|
||||
|
|
@ -68,7 +68,7 @@ void update_screen(void)
|
|||
int srcx, srcy=0; /* x / y coordinates in source image */
|
||||
unsigned char* image;
|
||||
image = sp_image + ( (Y_OFF)*(WIDTH) ) + X_OFF;
|
||||
frameb = rb->lcd_framebuffer;
|
||||
frameb = *rb->lcd_framebuffer;
|
||||
for(y = 0; y < LCD_HEIGHT; y++)
|
||||
{
|
||||
srcx = 0; /* reset our x counter before each row... */
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ void update_screen(void)
|
|||
#if LCD_PIXELFORMAT == HORIZONTAL_PACKING
|
||||
for(y = 0; y < LCD_HEIGHT; y++)
|
||||
{
|
||||
frameb = rb->lcd_framebuffer + (y) * FB_WIDTH;
|
||||
frameb = *rb->lcd_framebuffer + (y) * FB_WIDTH;
|
||||
srcx = 0; /* reset our x counter before each row... */
|
||||
for(x = 0; x < LCD_WIDTH; x++)
|
||||
{
|
||||
|
|
@ -67,7 +67,7 @@ void update_screen(void)
|
|||
int shift;
|
||||
for(y = 0; y < LCD_HEIGHT; y++)
|
||||
{
|
||||
frameb = rb->lcd_framebuffer + (y/4) * LCD_WIDTH;
|
||||
frameb = *rb->lcd_framebuffer + (y/4) * LCD_WIDTH;
|
||||
srcx = 0; /* reset our x counter before each row... */
|
||||
shift = ((y & 3 ) * 2 );
|
||||
mask = ~pixmask[y & 3];
|
||||
|
|
@ -84,7 +84,7 @@ void update_screen(void)
|
|||
int shift;
|
||||
for(y = 0; y < LCD_HEIGHT; y++)
|
||||
{
|
||||
frameb = rb->lcd_framebuffer + (y/8) * LCD_WIDTH;
|
||||
frameb = *rb->lcd_framebuffer + (y/8) * LCD_WIDTH;
|
||||
srcx = 0; /* reset our x counter before each row... */
|
||||
shift = (y & 7);
|
||||
mask = ~pixmask[y & 7];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue