gfx.c
changeset 2548 97ada3bd2702
parent 2436 177cb6a8339f
child 2631 13daba67f217
--- a/gfx.c	Fri Oct 21 12:24:55 2005 +0000
+++ b/gfx.c	Sat Oct 22 06:39:32 2005 +0000
@@ -115,7 +115,7 @@
 
 void GfxFillRect(int left, int top, int right, int bottom, int color)
 {
-	DrawPixelInfo *dpi = _cur_dpi;
+	const DrawPixelInfo* dpi = _cur_dpi;
 	Pixel *dst;
 	const int otop = top;
 	const int oleft = left;
@@ -167,7 +167,7 @@
 
 static void GfxSetPixel(int x, int y, int color)
 {
-	DrawPixelInfo *dpi = _cur_dpi;
+	const DrawPixelInfo* dpi = _cur_dpi;
 	if ((x-=dpi->left) < 0 || x>=dpi->width || (y-=dpi->top)<0 || y>=dpi->height)
 		return;
 	dpi->dst_ptr[y * dpi->pitch + x] = color;
@@ -426,7 +426,7 @@
 		}
 
 		num++;
-		str[-1] = 0;
+		str[-1] = '\0';
 	}
 }
 
@@ -1361,7 +1361,7 @@
 
 static void GfxMainBlitter(const Sprite* sprite, int x, int y, int mode)
 {
-	DrawPixelInfo *dpi = _cur_dpi;
+	const DrawPixelInfo* dpi = _cur_dpi;
 	int start_x, start_y;
 	byte info;
 	BlitterParams bp;
@@ -1871,7 +1871,7 @@
 	SetDirtyBlocks(0, 0, _screen.width, _screen.height);
 }
 
-bool FillDrawPixelInfo(DrawPixelInfo *n, DrawPixelInfo *o, int left, int top, int width, int height)
+bool FillDrawPixelInfo(DrawPixelInfo* n, const DrawPixelInfo* o, int left, int top, int width, int height)
 {
 	int t;