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
56173d40
Commit
56173d40
authored
Nov 09, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added GdipGetTextContrast.
parent
48c4248d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
1 deletion
+39
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
gdiplus_private.h
dlls/gdiplus/gdiplus_private.h
+1
-0
graphics.c
dlls/gdiplus/graphics.c
+13
-0
graphics.c
dlls/gdiplus/tests/graphics.c
+23
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
56173d40
...
...
@@ -395,7 +395,7 @@
@ stdcall GdipGetStringFormatTabStopCount(ptr ptr)
@ stdcall GdipGetStringFormatTabStops(ptr long ptr ptr)
@ stdcall GdipGetStringFormatTrimming(ptr ptr)
@ st
ub GdipGetTextContrast
@ st
dcall GdipGetTextContrast(ptr ptr)
@ stdcall GdipGetTextRenderingHint(ptr ptr)
@ stub GdipGetTextureImage
@ stdcall GdipGetTextureTransform(ptr ptr)
...
...
dlls/gdiplus/gdiplus_private.h
View file @
56173d40
...
...
@@ -100,6 +100,7 @@ struct GpGraphics{
GpMatrix
*
worldtrans
;
/* world transform */
BOOL
busy
;
/* hdc handle obtained by GdipGetDC */
GpRegion
*
clip
;
UINT
textcontrast
;
/* not used yet. get/set only */
};
struct
GpBrush
{
...
...
dlls/gdiplus/graphics.c
View file @
56173d40
...
...
@@ -763,6 +763,7 @@ GpStatus WINGDIPAPI GdipCreateFromHDC2(HDC hdc, HANDLE hDevice, GpGraphics **gra
(
*
graphics
)
->
unit
=
UnitDisplay
;
(
*
graphics
)
->
scale
=
1
.
0
;
(
*
graphics
)
->
busy
=
FALSE
;
(
*
graphics
)
->
textcontrast
=
4
;
return
Ok
;
}
...
...
@@ -2507,6 +2508,18 @@ GpStatus WINGDIPAPI GdipGetSmoothingMode(GpGraphics *graphics, SmoothingMode *mo
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipGetTextContrast
(
GpGraphics
*
graphics
,
UINT
*
contrast
)
{
TRACE
(
"(%p, %p)
\n
"
,
graphics
,
contrast
);
if
(
!
graphics
||
!
contrast
)
return
InvalidParameter
;
*
contrast
=
graphics
->
textcontrast
;
return
Ok
;
}
/* FIXME: Text rendering hint is not used anywhere except the getter/setter. */
GpStatus
WINGDIPAPI
GdipGetTextRenderingHint
(
GpGraphics
*
graphics
,
TextRenderingHint
*
hint
)
...
...
dlls/gdiplus/tests/graphics.c
View file @
56173d40
...
...
@@ -902,6 +902,28 @@ static void test_clear(void)
expect
(
InvalidParameter
,
status
);
}
static
void
test_textcontrast
(
void
)
{
GpStatus
status
;
HDC
hdc
=
GetDC
(
0
);
GpGraphics
*
graphics
;
UINT
contrast
;
status
=
GdipGetTextContrast
(
NULL
,
NULL
);
expect
(
InvalidParameter
,
status
);
status
=
GdipCreateFromHDC
(
hdc
,
&
graphics
);
expect
(
Ok
,
status
);
status
=
GdipGetTextContrast
(
graphics
,
NULL
);
expect
(
InvalidParameter
,
status
);
status
=
GdipGetTextContrast
(
graphics
,
&
contrast
);
expect
(
4
,
contrast
);
GdipDeleteGraphics
(
graphics
);
ReleaseDC
(
0
,
hdc
);
}
START_TEST
(
graphics
)
{
struct
GdiplusStartupInput
gdiplusStartupInput
;
...
...
@@ -926,6 +948,7 @@ START_TEST(graphics)
test_get_set_clip
();
test_isempty
();
test_clear
();
test_textcontrast
();
GdiplusShutdown
(
gdiplusToken
);
}
include/gdiplusflat.h
View file @
56173d40
...
...
@@ -200,6 +200,7 @@ GpStatus WINGDIPAPI GdipGetPageScale(GpGraphics*,REAL*);
GpStatus
WINGDIPAPI
GdipGetPageUnit
(
GpGraphics
*
,
GpUnit
*
);
GpStatus
WINGDIPAPI
GdipGetPixelOffsetMode
(
GpGraphics
*
,
PixelOffsetMode
*
);
GpStatus
WINGDIPAPI
GdipGetSmoothingMode
(
GpGraphics
*
,
SmoothingMode
*
);
GpStatus
WINGDIPAPI
GdipGetTextContrast
(
GpGraphics
*
,
UINT
*
);
GpStatus
WINGDIPAPI
GdipGetTextRenderingHint
(
GpGraphics
*
,
TextRenderingHint
*
);
GpStatus
WINGDIPAPI
GdipGetWorldTransform
(
GpGraphics
*
,
GpMatrix
*
);
GpStatus
WINGDIPAPI
GdipGraphicsClear
(
GpGraphics
*
,
ARGB
);
...
...
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