summaryrefslogtreecommitdiff
blob: c58df4c58cddb0a7658245836aa4a3b77a6297e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- Sources/Display/Display/Generic/blit_transparent.cpp.old	2006-09-14 00:48:06.000000000 +0200
+++ Sources/Display/Display/Generic/blit_transparent.cpp	2006-09-14 00:49:16.000000000 +0200
@@ -278,6 +278,8 @@
 	unsigned int dest_pitch = target->get_pitch();
 
 	unsigned char *dest = (unsigned char *) target->get_data();
+	if (y == 0)
+		y = 1;
 	dest += x*sizeof(T) + (y-1)*dest_pitch;
 
 //	T *dd;