diff options
author | Matthias Hopf <mhopf@suse.de> | 2006-10-17 17:06:44 +0200 |
---|---|---|
committer | Matthias Hopf <mhopf@suse.de> | 2006-10-17 17:06:44 +0200 |
commit | df979b75c8cd8a7e0566aea58031bb9b8f5cd3d3 (patch) | |
tree | c23c03314233604cd73d16437c004ae4dd2b9060 /cfb | |
parent | d430e76a161c963169067875c3654f5fd8f42b19 (diff) |
StorePixels() macro could create invalid *x++=*x... code - fixed.
Diffstat (limited to 'cfb')
-rw-r--r-- | cfb/cfbteblt8.c | 2 |
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 |