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
60cad235
Commit
60cad235
authored
Jul 13, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Jul 16, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added compositing quality.
parent
53e17d29
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
40 additions
and
2 deletions
+40
-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
+11
-0
gdiplusflat.h
include/gdiplusflat.h
+2
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
60cad235
...
...
@@ -235,7 +235,7 @@
@ stub GdipGetClipBounds
@ stub GdipGetClipBoundsI
@ stub GdipGetCompositingMode
@ st
ub GdipGetCompositingQuality
@ st
dcall GdipGetCompositingQuality(ptr ptr)
@ stub GdipGetCustomLineCapBaseCap
@ stub GdipGetCustomLineCapBaseInset
@ stub GdipGetCustomLineCapStrokeCaps
...
...
@@ -493,7 +493,7 @@
@ stub GdipSetClipRectI
@ stub GdipSetClipRegion
@ stub GdipSetCompositingMode
@ st
ub GdipSetCompositingQuality
@ st
dcall GdipSetCompositingQuality(ptr long)
@ stub GdipSetCustomLineCapBaseCap
@ stub GdipSetCustomLineCapBaseInset
@ stub GdipSetCustomLineCapStrokeCaps
...
...
dlls/gdiplus/gdiplus_private.h
View file @
60cad235
...
...
@@ -55,6 +55,7 @@ struct GpGraphics{
HDC
hdc
;
HWND
hwnd
;
SmoothingMode
smoothing
;
CompositingQuality
compqual
;
};
struct
GpBrush
{
...
...
dlls/gdiplus/graphics.c
View file @
60cad235
...
...
@@ -543,6 +543,7 @@ GpStatus WINGDIPAPI GdipCreateFromHDC(HDC hdc, GpGraphics **graphics)
(
*
graphics
)
->
hdc
=
hdc
;
(
*
graphics
)
->
hwnd
=
NULL
;
(
*
graphics
)
->
smoothing
=
SmoothingModeDefault
;
(
*
graphics
)
->
compqual
=
CompositingQualityDefault
;
return
Ok
;
}
...
...
@@ -798,6 +799,18 @@ GpStatus WINGDIPAPI GdipFillPie(GpGraphics *graphics, GpBrush *brush, REAL x,
width
,
height
,
startAngle
,
sweepAngle
);
}
/* FIXME: Compositing quality is not used anywhere except the getter/setter. */
GpStatus
WINGDIPAPI
GdipGetCompositingQuality
(
GpGraphics
*
graphics
,
CompositingQuality
*
quality
)
{
if
(
!
graphics
||
!
quality
)
return
InvalidParameter
;
*
quality
=
graphics
->
compqual
;
return
Ok
;
}
/* FIXME: Smoothing mode is not used anywhere except the getter/setter. */
GpStatus
WINGDIPAPI
GdipGetSmoothingMode
(
GpGraphics
*
graphics
,
SmoothingMode
*
mode
)
{
...
...
@@ -809,6 +822,17 @@ GpStatus WINGDIPAPI GdipGetSmoothingMode(GpGraphics *graphics, SmoothingMode *mo
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipSetCompositingQuality
(
GpGraphics
*
graphics
,
CompositingQuality
quality
)
{
if
(
!
graphics
)
return
InvalidParameter
;
graphics
->
compqual
=
quality
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipSetSmoothingMode
(
GpGraphics
*
graphics
,
SmoothingMode
mode
)
{
if
(
!
graphics
)
...
...
include/gdiplusenums.h
View file @
60cad235
...
...
@@ -99,6 +99,16 @@ enum SmoothingMode
SmoothingModeAntiAlias
};
enum
CompositingQuality
{
CompositingQualityInvalid
=
QualityModeInvalid
,
CompositingQualityDefault
=
QualityModeDefault
,
CompositingQualityHighSpeed
=
QualityModeLow
,
CompositingQualityHighQuality
=
QualityModeHigh
,
CompositingQualityGammaCorrected
,
CompositingQualityAssumeLinear
};
#ifndef __cplusplus
typedef
enum
Unit
Unit
;
...
...
@@ -109,6 +119,7 @@ typedef enum PathPointType PathPointType;
typedef
enum
LineJoin
LineJoin
;
typedef
enum
QualityMode
QualityMode
;
typedef
enum
SmoothingMode
SmoothingMode
;
typedef
enum
CompositingQuality
CompositingQuality
;
#endif
/* end of c typedefs */
...
...
include/gdiplusflat.h
View file @
60cad235
...
...
@@ -45,7 +45,9 @@ GpStatus WINGDIPAPI GdipDrawPath(GpGraphics*,GpPen*,GpPath*);
GpStatus
WINGDIPAPI
GdipDrawPie
(
GpGraphics
*
,
GpPen
*
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
);
GpStatus
WINGDIPAPI
GdipDrawRectangleI
(
GpGraphics
*
,
GpPen
*
,
INT
,
INT
,
INT
,
INT
);
GpStatus
WINGDIPAPI
GdipFillPie
(
GpGraphics
*
,
GpBrush
*
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
);
GpStatus
WINGDIPAPI
GdipGetCompositingQuality
(
GpGraphics
*
,
CompositingQuality
*
);
GpStatus
WINGDIPAPI
GdipGetSmoothingMode
(
GpGraphics
*
,
SmoothingMode
*
);
GpStatus
WINGDIPAPI
GdipSetCompositingQuality
(
GpGraphics
*
,
CompositingQuality
);
GpStatus
WINGDIPAPI
GdipSetSmoothingMode
(
GpGraphics
*
,
SmoothingMode
);
GpStatus
WINGDIPAPI
GdipCreateSolidFill
(
ARGB
,
GpSolidFill
**
);
...
...
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