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
28bb9d15
Commit
28bb9d15
authored
Aug 01, 2016
by
Huw Davies
Committed by
Alexandre Julliard
Aug 01, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Only reselect the objects if the linear transform portion changes.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
24291f2b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
dc.c
dlls/gdi32/dc.c
+12
-1
No files found.
dlls/gdi32/dc.c
View file @
28bb9d15
...
...
@@ -325,6 +325,17 @@ static void construct_window_to_viewport(DC *dc, XFORM *xform)
}
/***********************************************************************
* linear_xform_cmp
*
* Compares the linear transform portion of two XFORMs (i.e. the 2x2 submatrix).
* Returns 0 if they match.
*/
static
inline
int
linear_xform_cmp
(
const
XFORM
*
a
,
const
XFORM
*
b
)
{
return
memcmp
(
a
,
b
,
FIELD_OFFSET
(
XFORM
,
eDx
)
);
}
/***********************************************************************
* DC_UpdateXforms
*
* Updates the xformWorld2Vport, xformVport2World and vport2WorldValid
...
...
@@ -351,7 +362,7 @@ void DC_UpdateXforms( DC *dc )
/* Reselect the font and pen back into the dc so that the size
gets updated. */
if
(
memcmp
(
&
oldworld2vport
,
&
dc
->
xformWorld2Vport
,
sizeof
(
oldworld2vport
)
)
&&
if
(
linear_xform_cmp
(
&
oldworld2vport
,
&
dc
->
xformWorld2Vport
)
&&
!
GdiIsMetaFileDC
(
dc
->
hSelf
))
{
SelectObject
(
dc
->
hSelf
,
dc
->
hFont
);
...
...
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