Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
a585659e
Commit
a585659e
authored
Dec 19, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Remove support for deferring brush calls to X11, all brush types are supported now.
parent
4066587f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
29 deletions
+4
-29
dibdrv.h
dlls/gdi32/dibdrv/dibdrv.h
+0
-6
graphics.c
dlls/gdi32/dibdrv/graphics.c
+4
-17
objects.c
dlls/gdi32/dibdrv/objects.c
+0
-6
No files found.
dlls/gdi32/dibdrv/dibdrv.h
View file @
a585659e
...
...
@@ -112,7 +112,6 @@ typedef struct dibdrv_physdev
}
dibdrv_physdev
;
#define DEFER_PEN 2
#define DEFER_BRUSH 4
extern
BOOL
dibdrv_AlphaBlend
(
PHYSDEV
dst_dev
,
struct
bitblt_coords
*
dst
,
PHYSDEV
src_dev
,
struct
bitblt_coords
*
src
,
BLENDFUNCTION
blend
)
DECLSPEC_HIDDEN
;
...
...
@@ -253,8 +252,3 @@ static inline BOOL defer_pen(dibdrv_physdev *pdev)
{
return
pdev
->
defer
&
DEFER_PEN
;
}
static
inline
BOOL
defer_brush
(
dibdrv_physdev
*
pdev
)
{
return
pdev
->
defer
&
DEFER_BRUSH
;
}
dlls/gdi32/dibdrv/graphics.c
View file @
a585659e
...
...
@@ -467,26 +467,16 @@ static inline INT get_rop2_from_rop(INT rop)
*/
BOOL
dibdrv_PatBlt
(
PHYSDEV
dev
,
struct
bitblt_coords
*
dst
,
DWORD
rop
)
{
PHYSDEV
next
=
GET_NEXT_PHYSDEV
(
dev
,
pPatBlt
);
dibdrv_physdev
*
pdev
=
get_dibdrv_pdev
(
dev
);
INT
rop2
=
get_rop2_from_rop
(
rop
);
BOOL
done
;
BOOL
ret
;
TRACE
(
"(%p, %d, %d, %d, %d, %06x)
\n
"
,
dev
,
dst
->
x
,
dst
->
y
,
dst
->
width
,
dst
->
height
,
rop
);
if
(
defer_brush
(
pdev
))
return
next
->
funcs
->
pPatBlt
(
next
,
dst
,
rop
);
update_brush_rop
(
pdev
,
rop2
);
done
=
brush_rects
(
pdev
,
1
,
&
dst
->
visrect
);
ret
=
brush_rects
(
pdev
,
1
,
&
dst
->
visrect
);
update_brush_rop
(
pdev
,
GetROP2
(
dev
->
hdc
)
);
if
(
!
done
)
return
next
->
funcs
->
pPatBlt
(
next
,
dst
,
rop
);
return
TRUE
;
return
ret
;
}
/***********************************************************************
...
...
@@ -494,7 +484,6 @@ BOOL dibdrv_PatBlt( PHYSDEV dev, struct bitblt_coords *dst, DWORD rop )
*/
BOOL
dibdrv_PaintRgn
(
PHYSDEV
dev
,
HRGN
rgn
)
{
PHYSDEV
next
=
GET_NEXT_PHYSDEV
(
dev
,
pPaintRgn
);
dibdrv_physdev
*
pdev
=
get_dibdrv_pdev
(
dev
);
const
WINEREGION
*
region
;
int
i
;
...
...
@@ -502,8 +491,6 @@ BOOL dibdrv_PaintRgn( PHYSDEV dev, HRGN rgn )
TRACE
(
"%p, %p
\n
"
,
dev
,
rgn
);
if
(
defer_brush
(
pdev
))
return
next
->
funcs
->
pPaintRgn
(
next
,
rgn
);
region
=
get_wine_region
(
rgn
);
if
(
!
region
)
return
FALSE
;
...
...
@@ -587,7 +574,7 @@ BOOL dibdrv_Rectangle( PHYSDEV dev, INT left, INT top, INT right, INT bottom )
if
(
rect
.
left
==
rect
.
right
||
rect
.
top
==
rect
.
bottom
)
return
TRUE
;
if
(
defer_pen
(
pdev
)
||
defer_brush
(
pdev
)
)
if
(
defer_pen
(
pdev
))
return
next
->
funcs
->
pRectangle
(
next
,
left
,
top
,
right
,
bottom
);
reset_dash_origin
(
pdev
);
...
...
dlls/gdi32/dibdrv/objects.c
View file @
a585659e
...
...
@@ -1657,7 +1657,6 @@ HBRUSH dibdrv_SelectBrush( PHYSDEV dev, HBRUSH hbrush, HBITMAP bitmap,
pdev
->
brush_pattern_bits
=
bits
;
pdev
->
brush_pattern_usage
=
usage
;
pdev
->
brush_pattern_bitmap
=
bitmap
;
pdev
->
defer
&=
~
DEFER_BRUSH
;
free_pattern_brush
(
pdev
);
/* brush is actually selected only when it's used */
return
next
->
funcs
->
pSelectBrush
(
next
,
hbrush
,
bitmap
,
info
,
bits
,
usage
);
...
...
@@ -1670,8 +1669,6 @@ HBRUSH dibdrv_SelectBrush( PHYSDEV dev, HBRUSH hbrush, HBITMAP bitmap,
pdev
->
brush_style
=
logbrush
.
lbStyle
;
pdev
->
defer
|=
DEFER_BRUSH
;
free_pattern_brush
(
pdev
);
switch
(
logbrush
.
lbStyle
)
...
...
@@ -1681,12 +1678,10 @@ HBRUSH dibdrv_SelectBrush( PHYSDEV dev, HBRUSH hbrush, HBITMAP bitmap,
pdev
->
brush_color
=
get_pixel_color
(
pdev
,
pdev
->
brush_colorref
,
TRUE
);
calc_and_xor_masks
(
GetROP2
(
dev
->
hdc
),
pdev
->
brush_color
,
&
pdev
->
brush_and
,
&
pdev
->
brush_xor
);
pdev
->
brush_rects
=
solid_brush
;
pdev
->
defer
&=
~
DEFER_BRUSH
;
break
;
case
BS_NULL
:
pdev
->
brush_rects
=
null_brush
;
pdev
->
defer
&=
~
DEFER_BRUSH
;
break
;
case
BS_HATCHED
:
...
...
@@ -1696,7 +1691,6 @@ HBRUSH dibdrv_SelectBrush( PHYSDEV dev, HBRUSH hbrush, HBITMAP bitmap,
pdev
->
brush_color
=
get_pixel_color
(
pdev
,
pdev
->
brush_colorref
,
TRUE
);
calc_and_xor_masks
(
GetROP2
(
dev
->
hdc
),
pdev
->
brush_color
,
&
pdev
->
brush_and
,
&
pdev
->
brush_xor
);
pdev
->
brush_rects
=
pattern_brush
;
pdev
->
defer
&=
~
DEFER_BRUSH
;
break
;
default:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment