Disable antialiasing in palette mode

Alexandre Julliard julliard at wine.dyndns.org
Mon Jan 24 13:35:25 CST 2005


Glenn Wurster <gwurster at scs.carleton.ca> writes:

> --- dlls/x11drv/xrender.c	30 Nov 2004 21:38:58 -0000	1.52
> +++ dlls/x11drv/xrender.c	6 Dec 2004 00:02:20 -0000
> @@ -1013,6 +1013,29 @@
>      INT *deltas = NULL, char_extra;
>      HRGN saved_region = 0;
>      UINT align = GetTextAlign( hdc );
> +    BOOL disable_antialias = FALSE;
> +    AA_Type antialias = AA_None;
> +
> +    /* Do we need to disable antialiasing because of palette mode? */
> +    do {
> +       BITMAPOBJ *bmp;
> +       HBITMAP hBitmap;
> +
> +       hBitmap = GetCurrentObject( physDev->hdc, OBJ_BITMAP );
> +       bmp = (BITMAPOBJ *)GDI_GetObjPtr( hBitmap, BITMAP_MAGIC );

You should use GetObjectW here instead of GDI_GetObjPtr.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list