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
5b90101e
Commit
5b90101e
authored
Aug 05, 2009
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Aug 05, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Use symbol charset when creating Marlett font.
parent
2858f67a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
14 deletions
+18
-14
combo.c
dlls/user32/tests/combo.c
+18
-14
No files found.
dlls/user32/tests/combo.c
View file @
5b90101e
...
...
@@ -94,28 +94,29 @@ static void test_setitemheight(DWORD style)
static
void
test_setfont
(
DWORD
style
)
{
HWND
hCombo
=
build_combo
(
style
);
HFONT
hFont1
=
CreateFont
(
10
,
0
,
0
,
0
,
FW_DONTCARE
,
FALSE
,
FALSE
,
FALSE
,
ANSI_CHARSET
,
OUT_DEFAULT_PRECIS
,
CLIP_DEFAULT_PRECIS
,
DEFAULT_QUALITY
,
DEFAULT_PITCH
|
FF_DONTCARE
,
"Marlett"
);
HFONT
hFont2
=
CreateFont
(
8
,
0
,
0
,
0
,
FW_DONTCARE
,
FALSE
,
FALSE
,
FALSE
,
ANSI_CHARSET
,
OUT_DEFAULT_PRECIS
,
CLIP_DEFAULT_PRECIS
,
DEFAULT_QUALITY
,
DEFAULT_PITCH
|
FF_DONTCARE
,
"Marlett"
);
HWND
hCombo
;
HFONT
hFont1
,
hFont2
;
RECT
r
;
int
i
;
if
(
!
is_font_installed
(
"Marlett"
))
{
skip
(
"Marlett font not available
\n
"
);
return
;
}
trace
(
"Style %x
\n
"
,
style
);
hCombo
=
build_combo
(
style
);
hFont1
=
CreateFont
(
10
,
0
,
0
,
0
,
FW_DONTCARE
,
FALSE
,
FALSE
,
FALSE
,
SYMBOL_CHARSET
,
OUT_DEFAULT_PRECIS
,
CLIP_DEFAULT_PRECIS
,
DEFAULT_QUALITY
,
DEFAULT_PITCH
|
FF_DONTCARE
,
"Marlett"
);
hFont2
=
CreateFont
(
8
,
0
,
0
,
0
,
FW_DONTCARE
,
FALSE
,
FALSE
,
FALSE
,
SYMBOL_CHARSET
,
OUT_DEFAULT_PRECIS
,
CLIP_DEFAULT_PRECIS
,
DEFAULT_QUALITY
,
DEFAULT_PITCH
|
FF_DONTCARE
,
"Marlett"
);
GetClientRect
(
hCombo
,
&
r
);
expect_rect
(
r
,
0
,
0
,
100
,
24
);
SendMessageA
(
hCombo
,
CB_GETDROPPEDCONTROLRECT
,
0
,
(
LPARAM
)
&
r
);
MapWindowPoints
(
HWND_DESKTOP
,
hMainWnd
,
(
LPPOINT
)
&
r
,
2
);
todo_wine
expect_rect
(
r
,
5
,
5
,
105
,
105
);
if
(
!
is_font_installed
(
"Marlett"
))
{
skip
(
"Marlett font not available
\n
"
);
DestroyWindow
(
hCombo
);
DeleteObject
(
hFont1
);
DeleteObject
(
hFont2
);
return
;
}
if
(
font_height
(
hFont1
)
==
10
&&
font_height
(
hFont2
)
==
8
)
{
SendMessage
(
hCombo
,
WM_SETFONT
,
(
WPARAM
)
hFont1
,
FALSE
);
...
...
@@ -140,11 +141,14 @@ static void test_setfont(DWORD style)
todo_wine
expect_rect
(
r
,
5
,
5
,
105
,
99
);
}
else
skip
(
"Invalid Marlett font heights
\n
"
);
{
ok
(
0
,
"Expected Marlett font heights 10/8, got %d/%d
\n
"
,
font_height
(
hFont1
),
font_height
(
hFont2
));
}
for
(
i
=
1
;
i
<
30
;
i
++
)
{
HFONT
hFont
=
CreateFont
(
i
,
0
,
0
,
0
,
FW_DONTCARE
,
FALSE
,
FALSE
,
FALSE
,
ANSI
_CHARSET
,
OUT_DEFAULT_PRECIS
,
CLIP_DEFAULT_PRECIS
,
DEFAULT_QUALITY
,
DEFAULT_PITCH
|
FF_DONTCARE
,
"Marlett"
);
HFONT
hFont
=
CreateFont
(
i
,
0
,
0
,
0
,
FW_DONTCARE
,
FALSE
,
FALSE
,
FALSE
,
SYMBOL
_CHARSET
,
OUT_DEFAULT_PRECIS
,
CLIP_DEFAULT_PRECIS
,
DEFAULT_QUALITY
,
DEFAULT_PITCH
|
FF_DONTCARE
,
"Marlett"
);
int
height
=
font_height
(
hFont
);
SendMessage
(
hCombo
,
WM_SETFONT
,
(
WPARAM
)
hFont
,
FALSE
);
...
...
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