From e955e0b4c4ad168d54f9ae16c86ac50640b3c8b3 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 7 Jan 2009 23:30:31 +0000 Subject: Fixed warnings svn-id: r35780 --- engines/parallaction/graphics.cpp | 4 ++-- engines/parallaction/graphics.h | 2 +- engines/parallaction/parallaction.cpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/engines/parallaction/graphics.cpp b/engines/parallaction/graphics.cpp index bab7ed0605..8dd8a04219 100644 --- a/engines/parallaction/graphics.cpp +++ b/engines/parallaction/graphics.cpp @@ -385,7 +385,7 @@ void Gfx::updateScreen() { uint h = _backgroundInfo->height; byte *backgroundData = (byte*)_backgroundInfo->bg.getBasePtr(0, 0); uint16 backgroundPitch = _backgroundInfo->bg.pitch; - copyRectToScreen(backgroundData, backgroundPitch, _backgroundInfo->x, _backgroundInfo->y, w, h); + copyRectToScreen(backgroundData, backgroundPitch, _backgroundInfo->_x, _backgroundInfo->_y, w, h); } /* if (_varDrawPathZones == 1) { @@ -823,7 +823,7 @@ void Gfx::setBackground(uint type, BackgroundInfo *info) { } -BackgroundInfo::BackgroundInfo() : x(0), y(0), width(0), height(0), _mask(0), _path(0) { +BackgroundInfo::BackgroundInfo() : _x(0), _y(0), width(0), height(0), _mask(0), _path(0) { layers[0] = layers[1] = layers[2] = layers[3] = 0; memset(ranges, 0, sizeof(ranges)); } diff --git a/engines/parallaction/graphics.h b/engines/parallaction/graphics.h index 88c43ee4c5..69e048ff15 100644 --- a/engines/parallaction/graphics.h +++ b/engines/parallaction/graphics.h @@ -356,7 +356,7 @@ protected: void clearPathData(); public: - int x, y; // used to display bitmaps smaller than the screen + int _x, _y; // used to display bitmaps smaller than the screen int width; int height; diff --git a/engines/parallaction/parallaction.cpp b/engines/parallaction/parallaction.cpp index d6bb2582f4..0b1ac96fa1 100644 --- a/engines/parallaction/parallaction.cpp +++ b/engines/parallaction/parallaction.cpp @@ -292,8 +292,8 @@ void Parallaction::showSlide(const char *name, int x, int y) { BackgroundInfo *info = new BackgroundInfo; _disk->loadSlide(*info, name); - info->x = (x == CENTER_LABEL_HORIZONTAL) ? ((_screenWidth - info->width) >> 1) : x; - info->y = (y == CENTER_LABEL_VERTICAL) ? ((_screenHeight - info->height) >> 1) : y; + info->_x = (x == CENTER_LABEL_HORIZONTAL) ? ((_screenWidth - info->width) >> 1) : x; + info->_y = (y == CENTER_LABEL_VERTICAL) ? ((_screenHeight - info->height) >> 1) : y; _gfx->setBackground(kBackgroundSlide, info); } -- cgit v1.2.3