Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
56628200
Commit
56628200
authored
Aug 14, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Aug 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added GdipSetTextRenderingHint/GdipGetTextRenderingHint.
parent
ee59d414
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
2 deletions
+39
-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
+23
-0
gdiplusenums.h
include/gdiplusenums.h
+11
-0
gdiplusflat.h
include/gdiplusflat.h
+2
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
56628200
...
...
@@ -396,7 +396,7 @@
@ stub GdipGetStringFormatTabStops
@ stub GdipGetStringFormatTrimming
@ stub GdipGetTextContrast
@ st
ub GdipGetTextRenderingHint
@ st
dcall GdipGetTextRenderingHint(ptr ptr)
@ stub GdipGetTextureImage
@ stub GdipGetTextureTransform
@ stub GdipGetTextureWrapMode
...
...
@@ -594,7 +594,7 @@
@ stub GdipSetStringFormatTabStops
@ stub GdipSetStringFormatTrimming
@ stub GdipSetTextContrast
@ st
ub GdipSetTextRenderingHint
@ st
dcall GdipSetTextRenderingHint(ptr long)
@ stdcall GdipSetTextureTransform(ptr ptr)
@ stub GdipSetTextureWrapMode
@ stdcall GdipSetWorldTransform(ptr ptr)
...
...
dlls/gdiplus/gdiplus_private.h
View file @
56628200
...
...
@@ -80,6 +80,7 @@ struct GpGraphics{
InterpolationMode
interpolation
;
PixelOffsetMode
pixeloffset
;
CompositingMode
compmode
;
TextRenderingHint
texthint
;
GpUnit
unit
;
/* page unit */
REAL
scale
;
/* page scale */
GpMatrix
*
worldtrans
;
/* world transform */
...
...
dlls/gdiplus/graphics.c
View file @
56628200
...
...
@@ -1686,6 +1686,18 @@ GpStatus WINGDIPAPI GdipGetSmoothingMode(GpGraphics *graphics, SmoothingMode *mo
return
Ok
;
}
/* FIXME: Text rendering hint is not used anywhere except the getter/setter. */
GpStatus
WINGDIPAPI
GdipGetTextRenderingHint
(
GpGraphics
*
graphics
,
TextRenderingHint
*
hint
)
{
if
(
!
graphics
||
!
hint
)
return
InvalidParameter
;
*
hint
=
graphics
->
texthint
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipGetWorldTransform
(
GpGraphics
*
graphics
,
GpMatrix
*
matrix
)
{
if
(
!
graphics
||
!
matrix
)
...
...
@@ -1813,6 +1825,17 @@ GpStatus WINGDIPAPI GdipSetSmoothingMode(GpGraphics *graphics, SmoothingMode mod
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipSetTextRenderingHint
(
GpGraphics
*
graphics
,
TextRenderingHint
hint
)
{
if
(
!
graphics
)
return
InvalidParameter
;
graphics
->
texthint
=
hint
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipSetWorldTransform
(
GpGraphics
*
graphics
,
GpMatrix
*
matrix
)
{
if
(
!
graphics
||
!
matrix
)
...
...
include/gdiplusenums.h
View file @
56628200
...
...
@@ -204,6 +204,16 @@ enum CompositingMode
CompositingModeSourceCopy
};
enum
TextRenderingHint
{
TextRenderingHintSystemDefault
=
0
,
TextRenderingHintSingleBitPerPixelGridFit
,
TextRenderingHintSingleBitPerPixel
,
TextRenderingHintAntiAliasGridFit
,
TextRenderingHintAntiAlias
,
TextRenderingHintClearTypeGridFit
};
#ifndef __cplusplus
typedef
enum
Unit
Unit
;
...
...
@@ -226,6 +236,7 @@ typedef enum MetafileType MetafileType;
typedef
enum
LinearGradientMode
LinearGradientMode
;
typedef
enum
EmfType
EmfType
;
typedef
enum
CompositingMode
CompositingMode
;
typedef
enum
TextRenderingHint
TextRenderingHint
;
#endif
/* end of c typedefs */
...
...
include/gdiplusflat.h
View file @
56628200
...
...
@@ -92,6 +92,7 @@ GpStatus WINGDIPAPI GdipGetPageScale(GpGraphics*,REAL*);
GpStatus
WINGDIPAPI
GdipGetPageUnit
(
GpGraphics
*
,
GpUnit
*
);
GpStatus
WINGDIPAPI
GdipGetPixelOffsetMode
(
GpGraphics
*
,
PixelOffsetMode
*
);
GpStatus
WINGDIPAPI
GdipGetSmoothingMode
(
GpGraphics
*
,
SmoothingMode
*
);
GpStatus
WINGDIPAPI
GdipGetTextRenderingHint
(
GpGraphics
*
,
TextRenderingHint
*
);
GpStatus
WINGDIPAPI
GdipGetWorldTransform
(
GpGraphics
*
,
GpMatrix
*
);
GpStatus
WINGDIPAPI
GdipRestoreGraphics
(
GpGraphics
*
,
GraphicsState
);
GpStatus
WINGDIPAPI
GdipRotateWorldTransform
(
GpGraphics
*
,
REAL
,
GpMatrixOrder
);
...
...
@@ -104,6 +105,7 @@ GpStatus WINGDIPAPI GdipSetPageScale(GpGraphics*,REAL);
GpStatus
WINGDIPAPI
GdipSetPageUnit
(
GpGraphics
*
,
GpUnit
);
GpStatus
WINGDIPAPI
GdipSetPixelOffsetMode
(
GpGraphics
*
,
PixelOffsetMode
);
GpStatus
WINGDIPAPI
GdipSetSmoothingMode
(
GpGraphics
*
,
SmoothingMode
);
GpStatus
WINGDIPAPI
GdipSetTextRenderingHint
(
GpGraphics
*
,
TextRenderingHint
);
GpStatus
WINGDIPAPI
GdipSetWorldTransform
(
GpGraphics
*
,
GpMatrix
*
);
GpStatus
WINGDIPAPI
GdipTranslateWorldTransform
(
GpGraphics
*
,
REAL
,
REAL
,
GpMatrixOrder
);
...
...
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