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
e8219912
Commit
e8219912
authored
Dec 10, 1998
by
Huw D M Davies
Committed by
Alexandre Julliard
Dec 10, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sanity check on font size.
parent
2643894e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
xfont.c
graphics/x11drv/xfont.c
+9
-0
No files found.
graphics/x11drv/xfont.c
View file @
e8219912
...
...
@@ -32,6 +32,8 @@
#define MAX_FONT_FAMILIES 128
#define MAX_LFD_LENGTH 256
#define MAX_FONT_SIZE 5000
/* Max size in pixels */
#define REMOVE_SUBSETS 1
#define UNMARK_SUBSETS 0
...
...
@@ -2225,6 +2227,13 @@ static X_PHYSFONT XFONT_RealizeFont( LPLOGFONT16 plf )
plf
->
lfCharSet
,
plf
->
lfFaceName
,
plf
->
lfHeight
,
plf
->
lfWeight
,
(
plf
->
lfItalic
)
?
"Italic"
:
""
);
if
(
abs
(
plf
->
lfHeight
)
>
MAX_FONT_SIZE
)
{
ERR
(
font
,
"plf->lfHeight = %d, this is probably not right. Setting to 100
\n
"
,
plf
->
lfHeight
);
plf
->
lfHeight
=
100
;
}
XFONT_MatchDeviceFont
(
fontList
,
&
fm
);
pfo
->
fr
=
fm
.
pfr
;
...
...
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