summaryrefslogtreecommitdiff
path: root/gfx.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-12-23 23:15:07 +0000
committerdarkvater <darkvater@openttd.org>2004-12-23 23:15:07 +0000
commitd7bc1d776c4f776846d3d2b97a905d85734b1937 (patch)
treed06140858079766ee57561cfa11935ab02bd272e /gfx.c
parent1e8cfa10bfadb7902a526f282526168153f8f287 (diff)
downloadopenttd-d7bc1d776c4f776846d3d2b97a905d85734b1937.tar.xz
(svn r1268) -Fix: some warnings in gfx.c fixed
-Fix: Makefile now correctly works for cygwin/mingw; altough defining only cygwin does not compile the game -Fix: moved SDL information message from severity 0 to 1. Only errors/severe warnings should be level 0
Diffstat (limited to 'gfx.c')
-rw-r--r--gfx.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gfx.c b/gfx.c
index 127a22199..2c5691f25 100644
--- a/gfx.c
+++ b/gfx.c
@@ -1463,7 +1463,7 @@ static void GfxMainBlitter(byte *sprite, int x, int y, int mode)
}
}
-
+#if 0
static void GfxScalePalette(int pal, byte scaling)
{
byte *dst, *src;
@@ -1482,6 +1482,7 @@ static void GfxScalePalette(int pal, byte scaling)
src += 3;
} while (--count);
}
+#endif
void DoPaletteAnimations();
@@ -1701,6 +1702,7 @@ void DrawMouseCursor()
_cursor.dirty = false;
}
+#if defined(_DEBUG)
static void DbgScreenRect(int left, int top, int right, int bottom)
{
DrawPixelInfo dp,*old;
@@ -1711,6 +1713,7 @@ static void DbgScreenRect(int left, int top, int right, int bottom)
GfxFillRect(left, top, right-1, bottom-1, rand() & 255);
_cur_dpi = old;
}
+#endif
extern bool _dbg_screen_rect;