svn-id: r33948
This commit is contained in:
Johannes Schickel 2008-08-16 21:51:56 +00:00
parent cc80af1448
commit 08b4cf127b
2 changed files with 4 additions and 8 deletions

View File

@ -554,19 +554,16 @@ void Screen::copyRegion(int x1, int y1, int x2, int y2, int w, int h, int srcPag
copyOverlayRegion(x1, y1, x2, y2, w, h, srcPage, dstPage);
if (flags & CR_X_FLIPPED) {
if (flags & CR_NO_P_CHECK) {
while (h--) {
for (int i = 0; i < w; ++i) {
if (src[i] || (flags & CR_NO_P_CHECK))
dst[w-i] = src[i];
}
memcpy(dst, src, w);
src += SCREEN_W;
dst += SCREEN_W;
}
} else {
while (h--) {
for (int i = 0; i < w; ++i) {
if (src[i] || (flags & CR_NO_P_CHECK))
if (src[i])
dst[i] = src[i];
}
src += SCREEN_W;

View File

@ -74,8 +74,7 @@ public:
};
enum CopyRegionFlags {
CR_X_FLIPPED = 0x01,
CR_NO_P_CHECK = 0x02
CR_NO_P_CHECK = 0x01
};
enum DrawShapeFlags {