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
341f32a3
Commit
341f32a3
authored
Jul 30, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 30, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implemented GdipStringFormatGetGenericDefault with tests.
parent
e3a0a180
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
2 deletions
+51
-2
stringformat.c
dlls/gdiplus/stringformat.c
+9
-2
stringformat.c
dlls/gdiplus/tests/stringformat.c
+42
-0
No files found.
dlls/gdiplus/stringformat.c
View file @
341f32a3
...
...
@@ -67,12 +67,19 @@ GpStatus WINGDIPAPI GdipDeleteStringFormat(GpStringFormat *format)
GpStatus
WINGDIPAPI
GdipStringFormatGetGenericDefault
(
GpStringFormat
**
format
)
{
GpStatus
stat
;
if
(
!
format
)
return
InvalidParameter
;
FIXME
(
"stub: %p
\n
"
,
format
);
stat
=
GdipCreateStringFormat
(
0
,
LANG_NEUTRAL
,
format
);
if
(
stat
!=
Ok
)
return
stat
;
return
NotImplemented
;
(
*
format
)
->
align
=
StringAlignmentNear
;
(
*
format
)
->
vertalign
=
StringAlignmentNear
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipGetStringFormatAlign
(
GpStringFormat
*
format
,
...
...
dlls/gdiplus/tests/stringformat.c
View file @
341f32a3
...
...
@@ -277,6 +277,47 @@ static void test_tabstops(void)
expect
(
Ok
,
stat
);
}
static
void
test_getgenericdefault
(
void
)
{
GpStringFormat
*
format
;
GpStatus
stat
;
INT
flags
;
INT
n
;
StringAlignment
align
,
valign
;
StringTrimming
trimming
;
StringDigitSubstitute
digitsub
;
LANGID
digitlang
;
INT
tabcount
;
/* NULL arg */
stat
=
GdipStringFormatGetGenericDefault
(
NULL
);
expect
(
InvalidParameter
,
stat
);
stat
=
GdipStringFormatGetGenericDefault
(
&
format
);
expect
(
Ok
,
stat
);
GdipGetStringFormatFlags
(
format
,
&
flags
);
GdipGetStringFormatAlign
(
format
,
&
align
);
GdipGetStringFormatLineAlign
(
format
,
&
valign
);
GdipGetStringFormatHotkeyPrefix
(
format
,
&
n
);
GdipGetStringFormatTrimming
(
format
,
&
trimming
);
GdipGetStringFormatDigitSubstitution
(
format
,
&
digitlang
,
&
digitsub
);
GdipGetStringFormatTabStopCount
(
format
,
&
tabcount
);
expect
(
0
,
flags
);
expect
(
HotkeyPrefixNone
,
n
);
expect
(
StringAlignmentNear
,
align
);
expect
(
StringAlignmentNear
,
align
);
expect
(
StringTrimmingCharacter
,
trimming
);
expect
(
StringDigitSubstituteUser
,
digitsub
);
expect
(
LANG_NEUTRAL
,
digitlang
);
expect
(
0
,
tabcount
);
stat
=
GdipDeleteStringFormat
(
format
);
expect
(
Ok
,
stat
);
}
START_TEST
(
stringformat
)
{
struct
GdiplusStartupInput
gdiplusStartupInput
;
...
...
@@ -294,6 +335,7 @@ START_TEST(stringformat)
test_digitsubstitution
();
test_getgenerictypographic
();
test_tabstops
();
test_getgenericdefault
();
GdiplusShutdown
(
gdiplusToken
);
}
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