diff options
author | Matthias Hopf <mhopf@suse.de> | 2006-10-17 17:06:44 +0200 |
---|---|---|
committer | Daniel Stone <daniels@endtroducing.fooishbar.org> | 2006-10-20 00:42:47 +0300 |
commit | 5e17cde27b064174584d478130b0f95dcef78deb (patch) | |
tree | bd13bf6b50b9adb0fe86852456004bda2416333b /cfb | |
parent | 205c6788d7a34704e36b23f1a93d89e9b986266a (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 |