aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/kyra/kyra3.cpp12
-rw-r--r--engines/kyra/screen.cpp4
2 files changed, 8 insertions, 8 deletions
diff --git a/engines/kyra/kyra3.cpp b/engines/kyra/kyra3.cpp
index 234ae9f74d..f92d0b7cc0 100644
--- a/engines/kyra/kyra3.cpp
+++ b/engines/kyra/kyra3.cpp
@@ -418,7 +418,7 @@ void KyraEngine_v3::realInit() {
#pragma mark -
int KyraEngine_v3::initTableBuffer(uint8 *buf, int size) {
- debugC(9, kDebugLevelMain, "KyraEngine::initTableBuffer(%p, %d)", (void*)buf, size);
+ debugC(9, kDebugLevelMain, "KyraEngine::initTableBuffer(%p, %d)", (void *)buf, size);
if (!buf || size < 6320)
return 0;
@@ -445,7 +445,7 @@ int KyraEngine_v3::initTableBuffer(uint8 *buf, int size) {
}
void KyraEngine_v3::updateTableBuffer(uint8 *buf) {
- debugC(9, kDebugLevelMain, "KyraEngine::updateTableBuffer(%p)", (void*)buf);
+ debugC(9, kDebugLevelMain, "KyraEngine::updateTableBuffer(%p)", (void *)buf);
if (_tableBuffer2 == buf)
return;
@@ -457,7 +457,7 @@ void KyraEngine_v3::updateTableBuffer(uint8 *buf) {
}
int KyraEngine_v3::addShapeToTable(const uint8 *buf, int id, int shapeNum) {
- debugC(9, kDebugLevelMain, "KyraEngine::addShapeToTable(%p, %d, %d)", (void*)buf, id, shapeNum);
+ debugC(9, kDebugLevelMain, "KyraEngine::addShapeToTable(%p, %d, %d)", (const void *)buf, id, shapeNum);
if (!buf)
return 0;
@@ -490,7 +490,7 @@ int KyraEngine_v3::addShapeToTable(const uint8 *buf, int id, int shapeNum) {
}
int KyraEngine_v3::getTableSize(uint8 *buf) {
- debugC(9, kDebugLevelMain, "KyraEngine::getTableSize(%p)", (void*)buf);
+ debugC(9, kDebugLevelMain, "KyraEngine::getTableSize(%p)", (void *)buf);
updateTableBuffer(buf);
if (*((uint16*)(_tableBuffer1 + 4)) >= 450)
@@ -500,7 +500,7 @@ int KyraEngine_v3::getTableSize(uint8 *buf) {
}
uint8 *KyraEngine_v3::allocTableSpace(uint8 *buf, int size, int id) {
- debugC(9, kDebugLevelMain, "KyraEngine::allocTableSpace(%p, %d, %d)", (void*)buf, size, id);
+ debugC(9, kDebugLevelMain, "KyraEngine::allocTableSpace(%p, %d, %d)", (void *)buf, size, id);
if (!buf || !size)
return 0;
@@ -608,7 +608,7 @@ int tableIdCompare(const void *l, const void *r) {
}
uint8 *KyraEngine_v3::findIdInTable(uint8 *buf, int id) {
- debugC(9, kDebugLevelMain, "KyraEngine::findIdInTable(%p, %d)", (void*)buf, id);
+ debugC(9, kDebugLevelMain, "KyraEngine::findIdInTable(%p, %d)", (void *)buf, id);
updateTableBuffer(buf);
diff --git a/engines/kyra/screen.cpp b/engines/kyra/screen.cpp
index 4de6a0ed15..03887b45e4 100644
--- a/engines/kyra/screen.cpp
+++ b/engines/kyra/screen.cpp
@@ -2303,7 +2303,7 @@ void Screen::loadBitmap(const char *filename, int tempPage, int dstPage, uint8 *
// kyra3 specific
const uint8 *Screen::getPtrToShape(const uint8 *shpFile, int shape) {
- debugC(9, kDebugLevelScreen, "KyraEngine::getPtrToShape(%p, %d)", (void *)shpFile, shape);
+ debugC(9, kDebugLevelScreen, "KyraEngine::getPtrToShape(%p, %d)", (const void *)shpFile, shape);
uint16 shapes = READ_LE_UINT16(shpFile);
if (shapes <= shape)
@@ -2327,7 +2327,7 @@ uint8 *Screen::getPtrToShape(uint8 *shpFile, int shape) {
}
uint16 Screen::getShapeSize(const uint8 *shp) {
- debugC(9, kDebugLevelScreen, "KyraEngine::getShapeSize(%p)", (void *)shp);
+ debugC(9, kDebugLevelScreen, "KyraEngine::getShapeSize(%p)", (const void *)shp);
return READ_LE_UINT16(shp+6);
}