aboutsummaryrefslogtreecommitdiff
path: root/engines/prince/prince.cpp
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2014-10-10 14:11:38 +0200
committerWillem Jan Palenstijn2014-10-10 14:11:43 +0200
commitdd849ac5b77a238917cf970c0b1d842be79409e3 (patch)
tree65025fb64636ce0b80325470af7fee52b108575d /engines/prince/prince.cpp
parent24dd5d1f531c57fd21d3fe3a37a0c9e3d9f6cdca (diff)
downloadscummvm-rg350-dd849ac5b77a238917cf970c0b1d842be79409e3.tar.gz
scummvm-rg350-dd849ac5b77a238917cf970c0b1d842be79409e3.tar.bz2
scummvm-rg350-dd849ac5b77a238917cf970c0b1d842be79409e3.zip
PRINCE: Fix more warnings
Diffstat (limited to 'engines/prince/prince.cpp')
-rw-r--r--engines/prince/prince.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/prince/prince.cpp b/engines/prince/prince.cpp
index b5a652e02e..78de9a8cb0 100644
--- a/engines/prince/prince.cpp
+++ b/engines/prince/prince.cpp
@@ -600,7 +600,7 @@ void PrinceEngine::makeInvCursor(int itemNr) {
_cursor2->fillRect(cur2Rect, 255);
_cursor2->copyRectToSurface(*cur1Surface, 0, 0, cur1Rect);
- byte *src1 = (byte *)itemSurface->getBasePtr(0, 0);
+ const byte *src1 = (const byte *)itemSurface->getBasePtr(0, 0);
byte *dst1 = (byte *)_cursor2->getBasePtr(cur1W, cur1H);
if (itemH % 2) {
@@ -611,7 +611,7 @@ void PrinceEngine::makeInvCursor(int itemNr) {
}
for (int y = 0; y < itemH; y++) {
- byte *src2 = src1;
+ const byte *src2 = src1;
byte *dst2 = dst1;
if (y % 2 == 0) {
for (int x = 0; x < itemW; x++, src2++) {
@@ -2604,6 +2604,8 @@ void PrinceEngine::checkOptions() {
case Common::EN_ANY:
optText = optionsTextEN[i];
break;
+ default:
+ break;
};
uint16 textW = getTextWidth(optText.c_str());
uint16 textX = _optionsX + _optionsWidth / 2 - textW / 2;
@@ -2651,6 +2653,8 @@ void PrinceEngine::checkInvOptions() {
case Common::EN_ANY:
invText = invOptionsTextEN[i];
break;
+ default:
+ break;
};
uint16 textW = getTextWidth(invText.c_str());
uint16 textX = _optionsX + _invOptionsWidth / 2 - textW / 2;