[cairo-commit] src/cairo-directfb-surface.c

Benjamin Otte company at kemper.freedesktop.org
Mon Dec 17 03:42:53 PST 2007


 src/cairo-directfb-surface.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 627a8b4a2f2824f156893382561f563d0aa9e90d
Author: Benjamin Otte <otte at gnome.org>
Date:   Mon Dec 17 12:42:14 2007 +0100

    [directfb] replace u32 with uint32_t
    
    This fix makes it compile for me again

diff --git a/src/cairo-directfb-surface.c b/src/cairo-directfb-surface.c
index 2797050..2519e87 100644
--- a/src/cairo-directfb-surface.c
+++ b/src/cairo-directfb-surface.c
@@ -1497,7 +1497,7 @@ _directfb_acquire_font_cache (cairo_directfb_surface_t     *surface,
                 for (h = rect->h; h; h--) {
                     if (_directfb_argb_font) {
                         for (j = 0; j < rect->w; j++)
-                            ((u32 *)dst)[j] = (src[j>>3] & (1 << (j&7))) ? 0xffffffff : 0;
+                            ((uint32_t *)dst)[j] = (src[j>>3] & (1 << (j&7))) ? 0xffffffff : 0;
                     }
                     else {
                         for (j = 0; j < rect->w; j++)
@@ -1512,7 +1512,7 @@ _directfb_acquire_font_cache (cairo_directfb_surface_t     *surface,
                 for (h = rect->h; h; h--) {
                     if (_directfb_argb_font) {
                         for (j = 0; j < rect->w; j++)
-                            ((u32 *)dst)[j] = src[j] * 0x01010101;
+                            ((uint32_t *)dst)[j] = src[j] * 0x01010101;
                     }
                     else {
                         direct_memcpy (dst, src, rect->w);
@@ -1529,7 +1529,7 @@ _directfb_acquire_font_cache (cairo_directfb_surface_t     *surface,
                     }
                     else {
                         for (j = 0; j < rect->w; j++)
-                            dst[j] = ((u32 *)src)[j] >> 24;
+                            dst[j] = ((uint32_t *)src)[j] >> 24;
                     }
                     
                     dst += pitch;


More information about the cairo-commit mailing list