summaryrefslogtreecommitdiff
path: root/cfb
diff options
context:
space:
mode:
authorMatthias Hopf <mhopf@suse.de>2006-10-17 17:06:44 +0200
committerMatthias Hopf <mhopf@suse.de>2006-10-17 17:06:44 +0200
commitdf979b75c8cd8a7e0566aea58031bb9b8f5cd3d3 (patch)
treec23c03314233604cd73d16437c004ae4dd2b9060 /cfb
parentd430e76a161c963169067875c3654f5fd8f42b19 (diff)
StorePixels() macro could create invalid *x++=*x... code - fixed.
Diffstat (limited to 'cfb')
-rw-r--r--cfb/cfbteblt8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cfb/cfbteblt8.c b/cfb/cfbteblt8.c
index 1db299623..9d4ce5708 100644
--- a/cfb/cfbteblt8.c
+++ b/cfb/cfbteblt8.c
@@ -301,7 +301,7 @@ typedef unsigned int *glyphPointer;
#define StorePixels(o,p) dst[o] = p
#define Loop dst += widthDst;
#else
-#define StorePixels(o,p) *dst++ = (p)
+#define StorePixels(o,p) do { *dst = (p); dst++; } while (0)
#define Loop dst += widthLeft;
#endif