mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
gdi32: Don't set the bitmap owner when selecting a pattern brush.
This commit is contained in:
parent
0c5d619bd3
commit
5e1599d8c0
3 changed files with 2 additions and 14 deletions
|
@ -530,7 +530,7 @@ static void set_initial_bitmap_bits( HBITMAP hbitmap, BITMAPOBJ *bmp )
|
|||
* bitmap is selected into a device to initialize the bitmap function
|
||||
* table.
|
||||
*/
|
||||
BOOL BITMAP_SetOwnerDC( HBITMAP hbitmap, PHYSDEV physdev )
|
||||
static BOOL BITMAP_SetOwnerDC( HBITMAP hbitmap, PHYSDEV physdev )
|
||||
{
|
||||
BITMAPOBJ *bitmap;
|
||||
BOOL ret = TRUE;
|
||||
|
|
|
@ -488,16 +488,6 @@ static HGDIOBJ BRUSH_SelectObject( HGDIOBJ handle, HDC hdc )
|
|||
if (bmp && bmp->funcs != physdev->funcs) store_bitmap_bits( brush, bmp );
|
||||
GDI_ReleaseObj( bitmap );
|
||||
}
|
||||
if (brush->logbrush.lbStyle == BS_PATTERN)
|
||||
{
|
||||
PHYSDEV pattern_dev = physdev;
|
||||
/* FIXME: This will go away once the dib driver implements
|
||||
pattern brushes */
|
||||
if(pattern_dev == dc->dibdrv)
|
||||
pattern_dev = GET_NEXT_PHYSDEV( physdev, pSelectBrush );
|
||||
|
||||
BITMAP_SetOwnerDC( bitmap, pattern_dev );
|
||||
}
|
||||
|
||||
info = brush->info;
|
||||
bits = brush->bits.ptr;
|
||||
|
|
|
@ -228,9 +228,7 @@ extern DWORD stretch_bits( const BITMAPINFO *src_info, struct bitblt_coords *src
|
|||
BITMAPINFO *dst_info, struct bitblt_coords *dst,
|
||||
struct gdi_image_bits *bits, int mode ) DECLSPEC_HIDDEN;
|
||||
|
||||
/* bitmap.c */
|
||||
extern BOOL BITMAP_SetOwnerDC( HBITMAP hbitmap, PHYSDEV physdev ) DECLSPEC_HIDDEN;
|
||||
|
||||
/* brush.c */
|
||||
extern BOOL get_brush_bitmap_info( HBRUSH handle, BITMAPINFO *info, void **bits, UINT *usage ) DECLSPEC_HIDDEN;
|
||||
|
||||
/* clipping.c */
|
||||
|
|
Loading…
Reference in a new issue