Commit 40bf321e authored by Alexandre Julliard's avatar Alexandre Julliard

winex11: Remove the remainining DIB section locking calls.

parent c123c2f8
......@@ -1241,9 +1241,6 @@ DWORD X11DRV_PutImage( PHYSDEV dev, HBITMAP hbitmap, HRGN clip, BITMAPINFO *info
int height = dst->visrect.bottom - dst->visrect.top;
image->data = dst_bits.ptr;
/* hack: make sure the bits are readable if we are reading from a DIB section */
/* to be removed once we get rid of DIB access protections */
if (!dst_bits.is_copy) IsBadReadPtr( dst_bits.ptr, height * image->bytes_per_line );
if (bitmap)
{
......
......@@ -215,8 +215,6 @@ static void BRUSH_SelectPatternBrush( X11DRV_PDEVICE *physDev, HBITMAP hbitmap,
GetObjectW( hbitmap, sizeof(bitmap), &bitmap );
X11DRV_DIB_Lock( physBitmap, DIB_Status_GdiMod );
wine_tsx11_lock();
if (physDev->brush.pixmap) XFreePixmap( gdi_display, physDev->brush.pixmap );
......@@ -239,8 +237,6 @@ static void BRUSH_SelectPatternBrush( X11DRV_PDEVICE *physDev, HBITMAP hbitmap,
}
wine_tsx11_unlock();
X11DRV_DIB_Unlock( physBitmap, TRUE );
if (physBitmap->depth > 1)
{
physDev->brush.fillStyle = FillTiled;
......
......@@ -1997,9 +1997,6 @@ static DWORD create_image_pixmap( BITMAPINFO *info, const struct gdi_image_bits
if (ret) return ret;
image->data = dst_bits.ptr;
/* hack: make sure the bits are readable if we are reading from a DIB section */
/* to be removed once we get rid of DIB access protections */
if (!dst_bits.is_copy) IsBadReadPtr( dst_bits.ptr, image->height * image->bytes_per_line );
*use_repeat = (width == 1 && height == 1);
pa.repeat = *use_repeat ? RepeatNormal : RepeatNone;
......@@ -2641,8 +2638,6 @@ static HBRUSH xrenderdrv_SelectBrush( PHYSDEV dev, HBRUSH hbrush, const struct b
GetObjectW( bitmap, sizeof(bm), &bm );
X11DRV_DIB_Lock( physbitmap, DIB_Status_GdiMod );
wine_tsx11_lock();
pixmap = XCreatePixmap( gdi_display, root_window, bm.bmWidth, bm.bmHeight,
physdev->pict_format->depth );
......@@ -2662,7 +2657,6 @@ static HBRUSH xrenderdrv_SelectBrush( PHYSDEV dev, HBRUSH hbrush, const struct b
physdev->x11dev->brush.style = BS_PATTERN;
wine_tsx11_unlock();
X11DRV_DIB_Unlock( physbitmap, TRUE );
if (delete_bitmap) DeleteObject( bitmap );
return hbrush;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment