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
c546462f
Commit
c546462f
authored
Dec 11, 2003
by
Rein Klazes
Committed by
Alexandre Julliard
Dec 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable the display of a true type bitmap for true type fonts.
parent
f92bbe6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
fontdlg.c
dlls/commdlg/fontdlg.c
+4
-9
No files found.
dlls/commdlg/fontdlg.c
View file @
c546462f
...
...
@@ -810,11 +810,9 @@ LRESULT CFn_WMDrawItem(HWND hDlg, WPARAM wParam, LPARAM lParam)
BITMAP
bm
;
COLORREF
cr
,
oldText
=
0
,
oldBk
=
0
;
RECT
rect
;
#if 0
HDC
hMemDC
;
int
nFontType
;
HBITMAP hBitmap; /* for later TT usage */
#endif
HBITMAP
objPrev
;
/* for TT usage */
LPDRAWITEMSTRUCT
lpdi
=
(
LPDRAWITEMSTRUCT
)
lParam
;
if
(
lpdi
->
itemID
==
(
UINT
)
-
1
)
/* got no items */
...
...
@@ -848,19 +846,16 @@ LRESULT CFn_WMDrawItem(HWND hDlg, WPARAM wParam, LPARAM lParam)
GetObjectA
(
hBitmapTT
,
sizeof
(
bm
),
&
bm
);
TextOutA
(
lpdi
->
hDC
,
lpdi
->
rcItem
.
left
+
bm
.
bmWidth
+
10
,
lpdi
->
rcItem
.
top
,
buffer
,
strlen
(
buffer
));
#if 0
nFontType
=
SendMessageA
(
lpdi
->
hwndItem
,
CB_GETITEMDATA
,
lpdi
->
itemID
,
0L
);
/* FIXME: draw bitmap if truetype usage */
if (nFontType&TRUETYPE_FONTTYPE)
if
(
nFontType
&
TRUETYPE_FONTTYPE
)
{
hMemDC
=
CreateCompatibleDC
(
lpdi
->
hDC
);
hBitmap
= SelectObject(hMemDC, hBitmapTT);
objPrev
=
SelectObject
(
hMemDC
,
hBitmapTT
);
BitBlt
(
lpdi
->
hDC
,
lpdi
->
rcItem
.
left
,
lpdi
->
rcItem
.
top
,
bm
.
bmWidth
,
bm
.
bmHeight
,
hMemDC
,
0
,
0
,
SRCCOPY
);
SelectObject(hMemDC,
hBitmap
);
SelectObject
(
hMemDC
,
objPrev
);
DeleteDC
(
hMemDC
);
}
#endif
break
;
case
cmb2
:
case
cmb3
:
...
...
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