[pkg-wine-party] [SCM] Debian Wine packaging branch, wheezy, updated. wine-1.4-7-302-gb61b690

Alexandre Julliard julliard at winehq.org
Sun Jun 17 20:03:26 UTC 2012


The following commit has been merged in the wheezy branch:
commit e5ab858fd77f347dfe0e82ed39fc359937833444
Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Apr 23 14:58:12 2012 +0200

    gdi32: Fix some typos in the 4-bpp shrink_row function.
    (cherry picked from commit 6c2235cf98bcd187dd5ee4608d9edc3cabb224bb)

diff --git a/dlls/gdi32/dibdrv/primitives.c b/dlls/gdi32/dibdrv/primitives.c
index 55c17b7..21381ec 100644
--- a/dlls/gdi32/dibdrv/primitives.c
+++ b/dlls/gdi32/dibdrv/primitives.c
@@ -5319,8 +5319,8 @@ static void shrink_row_4(const dib_info *dst_dib, const POINT *dst_start,
                          const struct stretch_params *params, int mode,
                          BOOL keep_dst)
 {
-    BYTE *dst_ptr = get_pixel_ptr_8( dst_dib, dst_start->x, dst_start->y );
-    BYTE *src_ptr = get_pixel_ptr_8( src_dib, src_start->x, src_start->y );
+    BYTE *dst_ptr = get_pixel_ptr_4( dst_dib, dst_start->x, dst_start->y );
+    BYTE *src_ptr = get_pixel_ptr_4( src_dib, src_start->x, src_start->y );
     int err = params->err_start;
     int width, dst_x = dst_start->x, src_x = src_start->x;
     struct rop_codes codes;
@@ -5330,12 +5330,12 @@ static void shrink_row_4(const dib_info *dst_dib, const POINT *dst_start,
     rop_codes_from_stretch_mode( mode, &codes );
     for (width = params->length; width; width--)
     {
-        if (new_pix && !keep_dst) do_rop_mask_8( dst_ptr, 0, init_val, (dst_x & 1) ? 0xf0 : 0x0f );
+        if (new_pix && !keep_dst) do_rop_mask_8( dst_ptr, 0, init_val, (dst_x & 1) ? 0x0f : 0xf0 );
 
         if (src_x & 1) src_val = (*src_ptr & 0x0f) | (*src_ptr << 4);
         else src_val = (*src_ptr & 0xf0) | (*src_ptr >> 4);
 
-        do_rop_codes_mask_8( dst_ptr, src_val, &codes, (dst_x & 1) ? 0xf0 : 0x0f );
+        do_rop_codes_mask_8( dst_ptr, src_val, &codes, (dst_x & 1) ? 0x0f : 0xf0 );
         new_pix = FALSE;
 
         if ((src_x & ~1) != ((src_x + params->src_inc) & ~1))

-- 
Debian Wine packaging



More information about the pkg-wine-party mailing list