blit fix (thx redblue)

Origin commit data
------------------
Branch: ni/coolstream
Commit: 6045be8dee
Author: BPanther <bpanther_ts@hotmail.com>
Date: 2020-06-13 (Sat, 13 Jun 2020)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
BPanther
2020-06-13 04:43:06 +02:00
committed by vanhofen
parent 968597eca5
commit 5aa6a9fd1c
2 changed files with 8 additions and 4 deletions

View File

@@ -460,7 +460,9 @@ void CFbAccelARM::paintRect(const int x, const int y, const int dx, const int dy
if(dx <1 || dy <1 ) if(dx <1 || dy <1 )
return; return;
bcm_accel_fill(fix.smem_start, screeninfo.xres, screeninfo.yres, stride,x, y, dx, dy,col); // do not accelerate small areas
if (fix.smem_start != 0 && dx > 25 && dy > 25)
bcm_accel_fill(fix.smem_start, screeninfo.xres, screeninfo.yres, stride,x, y, dx, dy,col);
int line = 0; int line = 0;
fb_pixel_t *fbp = getFrameBufferPointer() + (swidth * y); fb_pixel_t *fbp = getFrameBufferPointer() + (swidth * y);
@@ -474,6 +476,6 @@ void CFbAccelARM::paintRect(const int x, const int y, const int dx, const int dy
} }
mark(x, y, x+dx, y+dy); mark(x, y, x+dx, y+dy);
blit(); //blit();
} }
#endif #endif

View File

@@ -461,7 +461,9 @@ void CFbAccelMIPS::paintRect(const int x, const int y, const int dx, const int d
if(dx <1 || dy <1 ) if(dx <1 || dy <1 )
return; return;
bcm_accel_fill(fix.smem_start, screeninfo.xres, screeninfo.yres, stride,x, y, dx, dy,col); // do not accelerate small areas
if (fix.smem_start != 0 && dx > 25 && dy > 25)
bcm_accel_fill(fix.smem_start, screeninfo.xres, screeninfo.yres, stride,x, y, dx, dy,col);
int line = 0; int line = 0;
fb_pixel_t *fbp = getFrameBufferPointer() + (swidth * y); fb_pixel_t *fbp = getFrameBufferPointer() + (swidth * y);
@@ -475,6 +477,6 @@ void CFbAccelMIPS::paintRect(const int x, const int y, const int dx, const int d
} }
mark(x, y, x+dx, y+dy); mark(x, y, x+dx, y+dy);
blit(); //blit();
} }
#endif #endif