mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-17 23:44:22 +00:00
Cleanup.
svn-id: r33948
This commit is contained in:
parent
cc80af1448
commit
08b4cf127b
@ -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;
|
||||
|
@ -74,8 +74,7 @@ public:
|
||||
};
|
||||
|
||||
enum CopyRegionFlags {
|
||||
CR_X_FLIPPED = 0x01,
|
||||
CR_NO_P_CHECK = 0x02
|
||||
CR_NO_P_CHECK = 0x01
|
||||
};
|
||||
|
||||
enum DrawShapeFlags {
|
||||
|
Loading…
x
Reference in New Issue
Block a user