Re: Disable antialiasing in palette mode
24 Jan
2005
24 Jan
'05
7:35 p.m.
Glenn Wurster <gwurster(a)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(a)winehq.org
7628
Age (days ago)
7628
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard