winex11: Use a format with 8 bits of alpha for the AlphaBlend mask.

This commit is contained in:
Alexandre Julliard 2010-04-22 20:48:30 +02:00
parent f0460e3cfd
commit 11c7a67ac3
1 changed files with 2 additions and 2 deletions

View File

@ -1581,11 +1581,11 @@ static Picture get_mask_pict( int alpha )
if (!pixmap)
{
const WineXRenderFormat *fmt = get_xrender_format( WXR_FORMAT_MONO );
const WineXRenderFormat *fmt = get_xrender_format( WXR_FORMAT_A8R8G8B8 );
XRenderPictureAttributes pa;
wine_tsx11_lock();
pixmap = XCreatePixmap( gdi_display, root_window, 1, 1, 1 );
pixmap = XCreatePixmap( gdi_display, root_window, 1, 1, 32 );
pa.repeat = RepeatNormal;
pict = pXRenderCreatePicture( gdi_display, pixmap, fmt->pict_format, CPRepeat, &pa );
wine_tsx11_unlock();