aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/saga/gfx.cpp2
-rw-r--r--engines/saga/gfx.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/engines/saga/gfx.cpp b/engines/saga/gfx.cpp
index 9585aac1b1..b1e1e306ca 100644
--- a/engines/saga/gfx.cpp
+++ b/engines/saga/gfx.cpp
@@ -59,6 +59,7 @@ Gfx::~Gfx() {
_backBuffer.free();
}
+#ifdef SAGA_DEBUG
void Surface::drawPalette() {
int x;
int y;
@@ -78,6 +79,7 @@ void Surface::drawPalette() {
}
}
}
+#endif
// * Copies a rectangle from a raw 8 bit pixel buffer to the specified surface.
// - The surface must match the logical dimensions of the buffer exactly.
diff --git a/engines/saga/gfx.h b/engines/saga/gfx.h
index 68b77639d8..21e35b69bb 100644
--- a/engines/saga/gfx.h
+++ b/engines/saga/gfx.h
@@ -99,7 +99,9 @@ struct Color {
struct Surface : Graphics::Surface {
void transitionDissolve(const byte *sourceBuffer, const Common::Rect &sourceRect, int flags, double percent);
+#ifdef SAGA_DEBUG
void drawPalette();
+#endif
void drawPolyLine(const Point *points, int count, int color);
void blit(const Common::Rect &destRect, const byte *sourceBuffer);