aboutsummaryrefslogtreecommitdiff
path: root/engines/prince/graphics.cpp
diff options
context:
space:
mode:
authorlukaslw2014-06-06 03:21:47 +0200
committerlukaslw2014-06-22 20:08:42 +0200
commitbb85844e7336baaa09fe7edcf16007c7ebe259d9 (patch)
tree5bd0ae95ba65c9e2be699fd594a40b913aade27f /engines/prince/graphics.cpp
parent870d1be7c3b4e40b98710d0190aaaaaeffff621c (diff)
downloadscummvm-rg350-bb85844e7336baaa09fe7edcf16007c7ebe259d9.tar.gz
scummvm-rg350-bb85844e7336baaa09fe7edcf16007c7ebe259d9.tar.bz2
scummvm-rg350-bb85844e7336baaa09fe7edcf16007c7ebe259d9.zip
PRINCE: Inventory update - first suitcase drawing
Diffstat (limited to 'engines/prince/graphics.cpp')
-rw-r--r--engines/prince/graphics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/prince/graphics.cpp b/engines/prince/graphics.cpp
index 210b9d9ef9..49cc88c8ae 100644
--- a/engines/prince/graphics.cpp
+++ b/engines/prince/graphics.cpp
@@ -73,11 +73,11 @@ void GraphicsMan::draw(uint16 posX, uint16 posY, const Graphics::Surface *s) {
change();
}
-void GraphicsMan::drawTransparentIntro(int32 posX, int32 posY, const Graphics::Surface *s) {
+void GraphicsMan::drawTransparentSurface(int32 posX, int32 posY, const Graphics::Surface *s, int transColor) {
for (int y = 0; y < s->h; y++) {
for (int x = 0; x < s->w; x++) {
byte pixel = *((byte*)s->getBasePtr(x, y));
- if (pixel != 255) {
+ if (pixel != transColor) {
if (x + posX < _frontScreen->w && x + posX >= 0) {
if (y + posY < _frontScreen->h && y + posY >= 0) {
*((byte*)_frontScreen->getBasePtr(x + posX, y + posY)) = pixel;