Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
842d4993
Commit
842d4993
authored
Apr 07, 2011
by
Huw Davies
Committed by
Alexandre Julliard
Apr 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Add the ability to track whether we should defer to the graphics driver.
parent
ed23e3de
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletion
+22
-1
dc.c
dlls/gdi32/dibdrv/dc.c
+4
-1
objects.c
dlls/gdi32/dibdrv/objects.c
+13
-0
gdi_private.h
dlls/gdi32/gdi_private.h
+5
-0
No files found.
dlls/gdi32/dibdrv/dc.c
View file @
842d4993
...
...
@@ -118,7 +118,10 @@ static HBITMAP CDECL dibdrv_SelectBitmap( PHYSDEV dev, HBITMAP bitmap )
if
(
!
bmp
)
return
0
;
assert
(
bmp
->
dib
);
init_dib
(
&
pdev
->
dib
,
&
bmp
->
dib
->
dsBmih
,
bmp
->
dib
->
dsBitfields
,
bmp
->
dib
->
dsBm
.
bmBits
);
pdev
->
defer
=
0
;
if
(
!
init_dib
(
&
pdev
->
dib
,
&
bmp
->
dib
->
dsBmih
,
bmp
->
dib
->
dsBitfields
,
bmp
->
dib
->
dsBm
.
bmBits
))
pdev
->
defer
|=
DEFER_FORMAT
;
GDI_ReleaseObj
(
bitmap
);
...
...
dlls/gdi32/dibdrv/objects.c
View file @
842d4993
...
...
@@ -58,5 +58,18 @@ HPEN CDECL dibdrv_SelectPen( PHYSDEV dev, HPEN hpen )
pdev
->
pen_color
=
pdev
->
dib
.
funcs
->
colorref_to_pixel
(
&
pdev
->
dib
,
logpen
.
lopnColor
);
pdev
->
defer
|=
DEFER_PEN
;
switch
(
logpen
.
lopnStyle
&
PS_STYLE_MASK
)
{
case
PS_SOLID
:
if
(
logpen
.
lopnStyle
&
PS_GEOMETRIC
)
break
;
if
(
logpen
.
lopnWidth
.
x
>
1
)
break
;
pdev
->
defer
&=
~
DEFER_PEN
;
break
;
default:
break
;
}
return
next
->
funcs
->
pSelectPen
(
next
,
hpen
);
}
dlls/gdi32/gdi_private.h
View file @
842d4993
...
...
@@ -97,10 +97,15 @@ typedef struct dibdrv_physdev
struct
gdi_physdev
dev
;
dib_info
dib
;
DWORD
defer
;
/* pen */
DWORD
pen_color
;
}
dibdrv_physdev
;
#define DEFER_FORMAT 1
#define DEFER_PEN 2
typedef
struct
tagDC_FUNCS
{
INT
(
CDECL
*
pAbortDoc
)(
PHYSDEV
);
...
...
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