mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 01:41:23 +02:00
blit fix (thx redblue)
This commit is contained in:
@@ -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
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user