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
093ae8b6
Commit
093ae8b6
authored
Oct 11, 2010
by
Andrew Nguyen
Committed by
Alexandre Julliard
Oct 11, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Use a separate string buffer for X11R6 font check.
parent
6d605e68
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
xfont.c
dlls/winex11.drv/xfont.c
+4
-6
No files found.
dlls/winex11.drv/xfont.c
View file @
093ae8b6
...
...
@@ -2893,7 +2893,8 @@ static void X11DRV_FONT_InitX11Metrics( void )
int
i
,
x_count
,
buf_size
;
char
*
buffer
;
HKEY
hkey
;
XFontStruct
*
x_fs
;
char
fontcheck_name
[]
=
"-*-*-*-*-normal-*-[12 0 0 12]-*-72-*-*-*-iso8859-1"
;
wine_tsx11_lock
();
x_pattern
=
XListFonts
(
gdi_display
,
"*"
,
MAX_FONTS
,
&
x_count
);
...
...
@@ -2966,15 +2967,12 @@ static void X11DRV_FONT_InitX11Metrics( void )
XFreeFontNames
(
x_pattern
);
/* check if we're dealing with X11 R6 server */
{
XFontStruct
*
x_fs
;
strcpy
(
buffer
,
"-*-*-*-*-normal-*-[12 0 0 12]-*-72-*-*-*-iso8859-1"
);
if
(
(
x_fs
=
safe_XLoadQueryFont
(
gdi_display
,
buffer
))
)
if
(
(
x_fs
=
safe_XLoadQueryFont
(
gdi_display
,
fontcheck_name
))
)
{
text_caps
|=
TC_SF_X_YINDEP
;
XFreeFont
(
gdi_display
,
x_fs
);
}
}
wine_tsx11_unlock
();
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
...
...
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