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
e807eb9a
Commit
e807eb9a
authored
Aug 13, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Aug 14, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added GdipSetCompositingMode/GdipGetCompositingMode.
parent
6790cdb8
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
2 deletions
+36
-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
+24
-0
gdiplusenums.h
include/gdiplusenums.h
+7
-0
gdiplusflat.h
include/gdiplusflat.h
+2
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
e807eb9a
...
...
@@ -247,7 +247,7 @@
@ stub GdipGetClip
@ stub GdipGetClipBounds
@ stub GdipGetClipBoundsI
@ st
ub GdipGetCompositingMode
@ st
dcall GdipGetCompositingMode(ptr ptr)
@ stdcall GdipGetCompositingQuality(ptr ptr)
@ stub GdipGetCustomLineCapBaseCap
@ stub GdipGetCustomLineCapBaseInset
...
...
@@ -512,7 +512,7 @@
@ stub GdipSetClipRect
@ stub GdipSetClipRectI
@ stub GdipSetClipRegion
@ st
ub GdipSetCompositingMode
@ st
dcall GdipSetCompositingMode(ptr long)
@ stdcall GdipSetCompositingQuality(ptr long)
@ stub GdipSetCustomLineCapBaseCap
@ stub GdipSetCustomLineCapBaseInset
...
...
dlls/gdiplus/gdiplus_private.h
View file @
e807eb9a
...
...
@@ -79,6 +79,7 @@ struct GpGraphics{
CompositingQuality
compqual
;
InterpolationMode
interpolation
;
PixelOffsetMode
pixeloffset
;
CompositingMode
compmode
;
GpUnit
unit
;
/* page unit */
REAL
scale
;
/* page scale */
GpMatrix
*
worldtrans
;
/* world transform */
...
...
dlls/gdiplus/graphics.c
View file @
e807eb9a
...
...
@@ -760,6 +760,7 @@ GpStatus WINGDIPAPI GdipCreateFromHDC(HDC hdc, GpGraphics **graphics)
(
*
graphics
)
->
compqual
=
CompositingQualityDefault
;
(
*
graphics
)
->
interpolation
=
InterpolationModeDefault
;
(
*
graphics
)
->
pixeloffset
=
PixelOffsetModeDefault
;
(
*
graphics
)
->
compmode
=
CompositingModeSourceOver
;
(
*
graphics
)
->
unit
=
UnitDisplay
;
(
*
graphics
)
->
scale
=
1
.
0
;
...
...
@@ -1421,6 +1422,18 @@ GpStatus WINGDIPAPI GdipFillRectangleI(GpGraphics *graphics, GpBrush *brush,
return
Ok
;
}
/* FIXME: Compositing mode is not used anywhere except the getter/setter. */
GpStatus
WINGDIPAPI
GdipGetCompositingMode
(
GpGraphics
*
graphics
,
CompositingMode
*
mode
)
{
if
(
!
graphics
||
!
mode
)
return
InvalidParameter
;
*
mode
=
graphics
->
compmode
;
return
Ok
;
}
/* FIXME: Compositing quality is not used anywhere except the getter/setter. */
GpStatus
WINGDIPAPI
GdipGetCompositingQuality
(
GpGraphics
*
graphics
,
CompositingQuality
*
quality
)
...
...
@@ -1523,6 +1536,17 @@ GpStatus WINGDIPAPI GdipSaveGraphics(GpGraphics *graphics, GraphicsState *state)
return
NotImplemented
;
}
GpStatus
WINGDIPAPI
GdipSetCompositingMode
(
GpGraphics
*
graphics
,
CompositingMode
mode
)
{
if
(
!
graphics
)
return
InvalidParameter
;
graphics
->
compmode
=
mode
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipSetCompositingQuality
(
GpGraphics
*
graphics
,
CompositingQuality
quality
)
{
...
...
include/gdiplusenums.h
View file @
e807eb9a
...
...
@@ -198,6 +198,12 @@ enum EmfType
EmfTypeEmfPlusDual
=
MetafileTypeEmfPlusDual
};
enum
CompositingMode
{
CompositingModeSourceOver
,
CompositingModeSourceCopy
};
#ifndef __cplusplus
typedef
enum
Unit
Unit
;
...
...
@@ -219,6 +225,7 @@ typedef enum WrapMode WrapMode;
typedef
enum
MetafileType
MetafileType
;
typedef
enum
LinearGradientMode
LinearGradientMode
;
typedef
enum
EmfType
EmfType
;
typedef
enum
CompositingMode
CompositingMode
;
#endif
/* end of c typedefs */
...
...
include/gdiplusflat.h
View file @
e807eb9a
...
...
@@ -81,6 +81,7 @@ GpStatus WINGDIPAPI GdipFillPolygonI(GpGraphics*,GpBrush*,GDIPCONST GpPoint*,INT
GpFillMode
);
GpStatus
WINGDIPAPI
GdipFillRectangle
(
GpGraphics
*
,
GpBrush
*
,
REAL
,
REAL
,
REAL
,
REAL
);
GpStatus
WINGDIPAPI
GdipFillRectangleI
(
GpGraphics
*
,
GpBrush
*
,
INT
,
INT
,
INT
,
INT
);
GpStatus
WINGDIPAPI
GdipGetCompositingMode
(
GpGraphics
*
,
CompositingMode
*
);
GpStatus
WINGDIPAPI
GdipGetCompositingQuality
(
GpGraphics
*
,
CompositingQuality
*
);
GpStatus
WINGDIPAPI
GdipGetInterpolationMode
(
GpGraphics
*
,
InterpolationMode
*
);
GpStatus
WINGDIPAPI
GdipGetPageScale
(
GpGraphics
*
,
REAL
*
);
...
...
@@ -90,6 +91,7 @@ GpStatus WINGDIPAPI GdipGetSmoothingMode(GpGraphics*,SmoothingMode*);
GpStatus
WINGDIPAPI
GdipGetWorldTransform
(
GpGraphics
*
,
GpMatrix
*
);
GpStatus
WINGDIPAPI
GdipRestoreGraphics
(
GpGraphics
*
,
GraphicsState
);
GpStatus
WINGDIPAPI
GdipSaveGraphics
(
GpGraphics
*
,
GraphicsState
*
);
GpStatus
WINGDIPAPI
GdipSetCompositingMode
(
GpGraphics
*
,
CompositingMode
);
GpStatus
WINGDIPAPI
GdipSetCompositingQuality
(
GpGraphics
*
,
CompositingQuality
);
GpStatus
WINGDIPAPI
GdipSetInterpolationMode
(
GpGraphics
*
,
InterpolationMode
);
GpStatus
WINGDIPAPI
GdipSetPageScale
(
GpGraphics
*
,
REAL
);
...
...
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