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
9749caf7
Commit
9749caf7
authored
Dec 20, 2022
by
Bartosz Kosiorek
Committed by
Alexandre Julliard
May 18, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Improve performance of gdip_transform_points.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=53947
parent
901c8b90
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
graphics.c
dlls/gdiplus/graphics.c
+10
-9
No files found.
dlls/gdiplus/graphics.c
View file @
9749caf7
...
...
@@ -6887,13 +6887,15 @@ GpStatus get_graphics_transform(GpGraphics *graphics, GpCoordinateSpace dst_spac
if
(
dst_space
!=
src_space
)
{
scale_x
=
units_to_pixels
(
1
.
0
,
graphics
->
unit
,
graphics
->
xres
,
graphics
->
printer_display
);
scale_y
=
units_to_pixels
(
1
.
0
,
graphics
->
unit
,
graphics
->
yres
,
graphics
->
printer_display
);
if
(
graphics
->
unit
!=
UnitDisplay
)
{
scale_x
*=
graphics
->
scale
;
scale_y
*=
graphics
->
scale
;
scale_x
=
units_to_pixels
(
graphics
->
scale
,
graphics
->
unit
,
graphics
->
xres
,
graphics
->
printer_display
);
scale_y
=
units_to_pixels
(
graphics
->
scale
,
graphics
->
unit
,
graphics
->
yres
,
graphics
->
printer_display
);
}
else
{
scale_x
=
units_to_pixels
(
1
.
0
,
graphics
->
unit
,
graphics
->
xres
,
graphics
->
printer_display
);
scale_y
=
units_to_pixels
(
1
.
0
,
graphics
->
unit
,
graphics
->
yres
,
graphics
->
printer_display
);
}
if
(
dst_space
<
src_space
)
...
...
@@ -6903,12 +6905,11 @@ GpStatus get_graphics_transform(GpGraphics *graphics, GpCoordinateSpace dst_spac
{
case
WineCoordinateSpaceGdiDevice
:
{
GpMatrix
gdixform
;
gdixform
=
graphics
->
gdi_transform
;
GpMatrix
gdixform
=
graphics
->
gdi_transform
;
stat
=
GdipInvertMatrix
(
&
gdixform
);
if
(
stat
!=
Ok
)
break
;
GdipMultiplyMatrix
(
matrix
,
&
gdixform
,
MatrixOrderAppend
);
memcpy
(
matrix
->
matrix
,
gdixform
.
matrix
,
sizeof
(
matrix
->
matrix
)
);
if
(
dst_space
==
CoordinateSpaceDevice
)
break
;
/* else fall-through */
...
...
@@ -6934,7 +6935,7 @@ GpStatus get_graphics_transform(GpGraphics *graphics, GpCoordinateSpace dst_spac
switch
((
int
)
src_space
)
{
case
CoordinateSpaceWorld
:
GdipMultiplyMatrix
(
matrix
,
&
graphics
->
worldtrans
,
MatrixOrderAppend
);
memcpy
(
matrix
->
matrix
,
&
graphics
->
worldtrans
,
sizeof
(
matrix
->
matrix
)
);
if
(
dst_space
==
CoordinateSpacePage
)
break
;
/* else fall-through */
...
...
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