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
10b575bc
Commit
10b575bc
authored
Jul 23, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Jul 24, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added GdipSetPageUnit.
parent
64675264
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
2 deletions
+26
-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
+21
-0
gdiplusflat.h
include/gdiplusflat.h
+2
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
10b575bc
...
@@ -306,7 +306,7 @@
...
@@ -306,7 +306,7 @@
@ stub GdipGetMetafileHeaderFromWmf
@ stub GdipGetMetafileHeaderFromWmf
@ stub GdipGetNearestColor
@ stub GdipGetNearestColor
@ stub GdipGetPageScale
@ stub GdipGetPageScale
@ st
ub GdipGetPageUnit
@ st
dcall GdipGetPageUnit(ptr ptr)
@ stub GdipGetPathData
@ stub GdipGetPathData
@ stdcall GdipGetPathFillMode(ptr ptr)
@ stdcall GdipGetPathFillMode(ptr ptr)
@ stub GdipGetPathGradientBlend
@ stub GdipGetPathGradientBlend
...
@@ -525,7 +525,7 @@
...
@@ -525,7 +525,7 @@
@ stub GdipSetMatrixElements
@ stub GdipSetMatrixElements
@ stub GdipSetMetafileDownLevelRasterizationLimit
@ stub GdipSetMetafileDownLevelRasterizationLimit
@ stub GdipSetPageScale
@ stub GdipSetPageScale
@ st
ub GdipSetPageUnit
@ st
dcall GdipSetPageUnit(ptr long)
@ stdcall GdipSetPathFillMode(ptr long)
@ stdcall GdipSetPathFillMode(ptr long)
@ stub GdipSetPathGradientBlend
@ stub GdipSetPathGradientBlend
@ stub GdipSetPathGradientCenterColor
@ stub GdipSetPathGradientCenterColor
...
...
dlls/gdiplus/gdiplus_private.h
View file @
10b575bc
...
@@ -65,6 +65,7 @@ struct GpGraphics{
...
@@ -65,6 +65,7 @@ struct GpGraphics{
CompositingQuality
compqual
;
CompositingQuality
compqual
;
InterpolationMode
interpolation
;
InterpolationMode
interpolation
;
PixelOffsetMode
pixeloffset
;
PixelOffsetMode
pixeloffset
;
GpUnit
unit
;
/* page unit */
};
};
struct
GpBrush
{
struct
GpBrush
{
...
...
dlls/gdiplus/graphics.c
View file @
10b575bc
...
@@ -701,6 +701,7 @@ GpStatus WINGDIPAPI GdipCreateFromHDC(HDC hdc, GpGraphics **graphics)
...
@@ -701,6 +701,7 @@ GpStatus WINGDIPAPI GdipCreateFromHDC(HDC hdc, GpGraphics **graphics)
(
*
graphics
)
->
compqual
=
CompositingQualityDefault
;
(
*
graphics
)
->
compqual
=
CompositingQualityDefault
;
(
*
graphics
)
->
interpolation
=
InterpolationModeDefault
;
(
*
graphics
)
->
interpolation
=
InterpolationModeDefault
;
(
*
graphics
)
->
pixeloffset
=
PixelOffsetModeDefault
;
(
*
graphics
)
->
pixeloffset
=
PixelOffsetModeDefault
;
(
*
graphics
)
->
unit
=
UnitDisplay
;
return
Ok
;
return
Ok
;
}
}
...
@@ -1018,6 +1019,16 @@ GpStatus WINGDIPAPI GdipGetInterpolationMode(GpGraphics *graphics,
...
@@ -1018,6 +1019,16 @@ GpStatus WINGDIPAPI GdipGetInterpolationMode(GpGraphics *graphics,
return
Ok
;
return
Ok
;
}
}
GpStatus
WINGDIPAPI
GdipGetPageUnit
(
GpGraphics
*
graphics
,
GpUnit
*
unit
)
{
if
(
!
graphics
||
!
unit
)
return
InvalidParameter
;
*
unit
=
graphics
->
unit
;
return
Ok
;
}
/* FIXME: Pixel offset mode is not used anywhere except the getter/setter. */
/* FIXME: Pixel offset mode is not used anywhere except the getter/setter. */
GpStatus
WINGDIPAPI
GdipGetPixelOffsetMode
(
GpGraphics
*
graphics
,
PixelOffsetMode
GpStatus
WINGDIPAPI
GdipGetPixelOffsetMode
(
GpGraphics
*
graphics
,
PixelOffsetMode
*
mode
)
*
mode
)
...
@@ -1083,6 +1094,16 @@ GpStatus WINGDIPAPI GdipSetInterpolationMode(GpGraphics *graphics,
...
@@ -1083,6 +1094,16 @@ GpStatus WINGDIPAPI GdipSetInterpolationMode(GpGraphics *graphics,
return
Ok
;
return
Ok
;
}
}
GpStatus
WINGDIPAPI
GdipSetPageUnit
(
GpGraphics
*
graphics
,
GpUnit
unit
)
{
if
(
!
graphics
)
return
InvalidParameter
;
graphics
->
unit
=
unit
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipSetPixelOffsetMode
(
GpGraphics
*
graphics
,
PixelOffsetMode
GpStatus
WINGDIPAPI
GdipSetPixelOffsetMode
(
GpGraphics
*
graphics
,
PixelOffsetMode
mode
)
mode
)
{
{
...
...
include/gdiplusflat.h
View file @
10b575bc
...
@@ -62,12 +62,14 @@ GpStatus WINGDIPAPI GdipFillPolygonI(GpGraphics*,GpBrush*,GDIPCONST GpPoint*,INT
...
@@ -62,12 +62,14 @@ GpStatus WINGDIPAPI GdipFillPolygonI(GpGraphics*,GpBrush*,GDIPCONST GpPoint*,INT
GpFillMode
);
GpFillMode
);
GpStatus
WINGDIPAPI
GdipGetCompositingQuality
(
GpGraphics
*
,
CompositingQuality
*
);
GpStatus
WINGDIPAPI
GdipGetCompositingQuality
(
GpGraphics
*
,
CompositingQuality
*
);
GpStatus
WINGDIPAPI
GdipGetInterpolationMode
(
GpGraphics
*
,
InterpolationMode
*
);
GpStatus
WINGDIPAPI
GdipGetInterpolationMode
(
GpGraphics
*
,
InterpolationMode
*
);
GpStatus
WINGDIPAPI
GdipGetPageUnit
(
GpGraphics
*
,
GpUnit
*
);
GpStatus
WINGDIPAPI
GdipGetPixelOffsetMode
(
GpGraphics
*
,
PixelOffsetMode
*
);
GpStatus
WINGDIPAPI
GdipGetPixelOffsetMode
(
GpGraphics
*
,
PixelOffsetMode
*
);
GpStatus
WINGDIPAPI
GdipGetSmoothingMode
(
GpGraphics
*
,
SmoothingMode
*
);
GpStatus
WINGDIPAPI
GdipGetSmoothingMode
(
GpGraphics
*
,
SmoothingMode
*
);
GpStatus
WINGDIPAPI
GdipRestoreGraphics
(
GpGraphics
*
,
GraphicsState
);
GpStatus
WINGDIPAPI
GdipRestoreGraphics
(
GpGraphics
*
,
GraphicsState
);
GpStatus
WINGDIPAPI
GdipSaveGraphics
(
GpGraphics
*
,
GraphicsState
*
);
GpStatus
WINGDIPAPI
GdipSaveGraphics
(
GpGraphics
*
,
GraphicsState
*
);
GpStatus
WINGDIPAPI
GdipSetCompositingQuality
(
GpGraphics
*
,
CompositingQuality
);
GpStatus
WINGDIPAPI
GdipSetCompositingQuality
(
GpGraphics
*
,
CompositingQuality
);
GpStatus
WINGDIPAPI
GdipSetInterpolationMode
(
GpGraphics
*
,
InterpolationMode
);
GpStatus
WINGDIPAPI
GdipSetInterpolationMode
(
GpGraphics
*
,
InterpolationMode
);
GpStatus
WINGDIPAPI
GdipSetPageUnit
(
GpGraphics
*
,
GpUnit
);
GpStatus
WINGDIPAPI
GdipSetPixelOffsetMode
(
GpGraphics
*
,
PixelOffsetMode
);
GpStatus
WINGDIPAPI
GdipSetPixelOffsetMode
(
GpGraphics
*
,
PixelOffsetMode
);
GpStatus
WINGDIPAPI
GdipSetSmoothingMode
(
GpGraphics
*
,
SmoothingMode
);
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