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
81621395
Commit
81621395
authored
Jul 24, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Jul 25, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added GdipSetPageScale/GdipGetPageScale.
parent
827f979b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
2 deletions
+30
-2
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+2
-2
gdiplus_private.h
dlls/gdiplus/gdiplus_private.h
+1
-0
graphics.c
dlls/gdiplus/graphics.c
+25
-0
gdiplusflat.h
include/gdiplusflat.h
+2
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
81621395
...
...
@@ -305,7 +305,7 @@
@ stub GdipGetMetafileHeaderFromStream
@ stub GdipGetMetafileHeaderFromWmf
@ stub GdipGetNearestColor
@ st
ub GdipGetPageScale
@ st
dcall GdipGetPageScale(ptr ptr)
@ stdcall GdipGetPageUnit(ptr ptr)
@ stub GdipGetPathData
@ stdcall GdipGetPathFillMode(ptr ptr)
...
...
@@ -524,7 +524,7 @@
@ stub GdipSetLineWrapMode
@ stub GdipSetMatrixElements
@ stub GdipSetMetafileDownLevelRasterizationLimit
@ st
ub GdipSetPageScale
@ st
dcall GdipSetPageScale(ptr long)
@ stdcall GdipSetPageUnit(ptr long)
@ stdcall GdipSetPathFillMode(ptr long)
@ stub GdipSetPathGradientBlend
...
...
dlls/gdiplus/gdiplus_private.h
View file @
81621395
...
...
@@ -66,6 +66,7 @@ struct GpGraphics{
InterpolationMode
interpolation
;
PixelOffsetMode
pixeloffset
;
GpUnit
unit
;
/* page unit */
REAL
scale
;
/* page scale */
};
struct
GpBrush
{
...
...
dlls/gdiplus/graphics.c
View file @
81621395
...
...
@@ -109,6 +109,10 @@ static void transform_and_round_points(GpGraphics *graphics, POINT *pti,
break
;
}
/* apply page scale */
if
(
graphics
->
unit
!=
UnitDisplay
)
unitscale
*=
graphics
->
scale
;
for
(
i
=
0
;
i
<
count
;
i
++
){
pti
[
i
].
x
=
roundr
(
unitscale
*
ptf
[
i
].
X
);
pti
[
i
].
y
=
roundr
(
unitscale
*
ptf
[
i
].
Y
);
...
...
@@ -746,6 +750,7 @@ GpStatus WINGDIPAPI GdipCreateFromHDC(HDC hdc, GpGraphics **graphics)
(
*
graphics
)
->
interpolation
=
InterpolationModeDefault
;
(
*
graphics
)
->
pixeloffset
=
PixelOffsetModeDefault
;
(
*
graphics
)
->
unit
=
UnitDisplay
;
(
*
graphics
)
->
scale
=
1
.
0
;
return
Ok
;
}
...
...
@@ -1085,6 +1090,16 @@ GpStatus WINGDIPAPI GdipGetInterpolationMode(GpGraphics *graphics,
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipGetPageScale
(
GpGraphics
*
graphics
,
REAL
*
scale
)
{
if
(
!
graphics
||
!
scale
)
return
InvalidParameter
;
*
scale
=
graphics
->
scale
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipGetPageUnit
(
GpGraphics
*
graphics
,
GpUnit
*
unit
)
{
if
(
!
graphics
||
!
unit
)
...
...
@@ -1160,6 +1175,16 @@ GpStatus WINGDIPAPI GdipSetInterpolationMode(GpGraphics *graphics,
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipSetPageScale
(
GpGraphics
*
graphics
,
REAL
scale
)
{
if
(
!
graphics
||
(
scale
<=
0
.
0
))
return
InvalidParameter
;
graphics
->
scale
=
scale
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipSetPageUnit
(
GpGraphics
*
graphics
,
GpUnit
unit
)
{
if
(
!
graphics
||
(
unit
==
UnitWorld
))
...
...
include/gdiplusflat.h
View file @
81621395
...
...
@@ -62,6 +62,7 @@ GpStatus WINGDIPAPI GdipFillPolygonI(GpGraphics*,GpBrush*,GDIPCONST GpPoint*,INT
GpFillMode
);
GpStatus
WINGDIPAPI
GdipGetCompositingQuality
(
GpGraphics
*
,
CompositingQuality
*
);
GpStatus
WINGDIPAPI
GdipGetInterpolationMode
(
GpGraphics
*
,
InterpolationMode
*
);
GpStatus
WINGDIPAPI
GdipGetPageScale
(
GpGraphics
*
,
REAL
*
);
GpStatus
WINGDIPAPI
GdipGetPageUnit
(
GpGraphics
*
,
GpUnit
*
);
GpStatus
WINGDIPAPI
GdipGetPixelOffsetMode
(
GpGraphics
*
,
PixelOffsetMode
*
);
GpStatus
WINGDIPAPI
GdipGetSmoothingMode
(
GpGraphics
*
,
SmoothingMode
*
);
...
...
@@ -69,6 +70,7 @@ GpStatus WINGDIPAPI GdipRestoreGraphics(GpGraphics*,GraphicsState);
GpStatus
WINGDIPAPI
GdipSaveGraphics
(
GpGraphics
*
,
GraphicsState
*
);
GpStatus
WINGDIPAPI
GdipSetCompositingQuality
(
GpGraphics
*
,
CompositingQuality
);
GpStatus
WINGDIPAPI
GdipSetInterpolationMode
(
GpGraphics
*
,
InterpolationMode
);
GpStatus
WINGDIPAPI
GdipSetPageScale
(
GpGraphics
*
,
REAL
);
GpStatus
WINGDIPAPI
GdipSetPageUnit
(
GpGraphics
*
,
GpUnit
);
GpStatus
WINGDIPAPI
GdipSetPixelOffsetMode
(
GpGraphics
*
,
PixelOffsetMode
);
GpStatus
WINGDIPAPI
GdipSetSmoothingMode
(
GpGraphics
*
,
SmoothingMode
);
...
...
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