mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-23 10:19:27 +00:00
Add code for drawPixel
svn-id: r18027
This commit is contained in:
parent
4506dddbe3
commit
4c6bcd9f5a
@ -718,6 +718,7 @@ void ScummEngine_v80he::drawLine(int x1, int y1, int x, int unk1, int unk2, int
|
||||
}
|
||||
|
||||
void ScummEngine_v80he::drawPixel(int x, int y, int flags) {
|
||||
byte *src, *dst;
|
||||
VirtScreen *vs;
|
||||
|
||||
if (x < 0 || x > 639)
|
||||
@ -731,16 +732,21 @@ void ScummEngine_v80he::drawPixel(int x, int y, int flags) {
|
||||
|
||||
markRectAsDirty(vs->number, x, y, x, y + 1);
|
||||
|
||||
// TODO flags
|
||||
if (flags & 0x4000) {
|
||||
|
||||
|
||||
src = vs->getPixels(x, y);
|
||||
dst = vs->getBackPixels(x, y);
|
||||
*dst = *src;
|
||||
} else if (flags & 0x2000) {
|
||||
|
||||
|
||||
} else if (flags & 0x8000) {
|
||||
|
||||
|
||||
src = vs->getBackPixels(x, y);
|
||||
dst = vs->getPixels(x, y);
|
||||
*dst = *src;
|
||||
} else {
|
||||
dst = vs->getPixels(x, y);
|
||||
*dst = flags;
|
||||
if (flags & 0x8000) {
|
||||
dst = vs->getBackPixels(x, y);
|
||||
*dst = flags;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user