blit fix (thx redblue)

This commit is contained in:
BPanther
2020-06-13 04:43:06 +02:00
committed by Thilo Graf
parent 731e261605
commit e0d4b22bc9
2 changed files with 8 additions and 4 deletions

View File

@@ -460,6 +460,8 @@ void CFbAccelARM::paintRect(const int x, const int y, const int dx, const int dy
if(dx <1 || dy <1 )
return;
// 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;
@@ -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);
blit();
//blit();
}
#endif

View File

@@ -461,6 +461,8 @@ void CFbAccelMIPS::paintRect(const int x, const int y, const int dx, const int d
if(dx <1 || dy <1 )
return;
// 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;
@@ -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);
blit();
//blit();
}
#endif