Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Cameron Cawley
Browse
Commits
3f2cdce9
Commit
3f2cdce9
authored
27 years ago
by
Kevin Bracey
Browse files
Options
Download
Email Patches
Plain Diff
Corrected fm_string_width for system font and made it select fontsize 12.8\nwhen using system font.
parent
7499c24d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
c/FontManage
c/FontManage
+4
-1
c/Main
c/Main
+3
-1
No files found.
c/FontManage
View file @
3f2cdce9
...
...
@@ -1545,7 +1545,10 @@ _kernel_oserror * fm_get_string_width(fm_face h, const char * s, int maxwid, int
/* The system font case. */
int
wCurr
,
wLastSplit
,
oLastSplit
,
oCurr
;
int
wChar
=
(
FM_System_Size_X
(
h
)
*
4000
)
/
128
;
/* (Macro defined in FontManage.h) */
/* (Macro defined in FontManage.h). Important that we take */
/* account of rounding correctly - compare with formula in */
/* fm_puts(). */
int
wChar
=
(
FM_System_Size_X
(
h
)
*
10
/
(
128
*
wimpt_dx
()))
*
wimpt_dx
()
*
400
;
wCurr
=
wLastSplit
=
oLastSplit
=
oCurr
=
0
;
...
...
This diff is collapsed.
Click to expand it.
c/Main
View file @
3f2cdce9
...
...
@@ -656,6 +656,9 @@ static void load_choices(void)
if
(
choices
.
fontsize
>
24
)
choices
.
fontsize
=
24
;
choices
.
fontsize
*=
16
;
if
(
!
strcmp
(
lookup_choice
(
"SystemFont:no"
,
0
,
0
),
"yes"
))
choices
.
systemfont
=
1
;
if
(
choices
.
systemfont
)
choices
.
fontsize
=
FM_Standard_Size
;
/* None user-configurable options from the Messages file */
fixed
.
poll_delay
=
atoi
(
lookup_token
(
"AnimSpeed:4"
,
0
,
0
));
...
...
@@ -719,7 +722,6 @@ static void load_choices(void)
/* Miscellaneous options */
if
(
!
strcmp
(
lookup_choice
(
"BrickWall:no"
,
0
,
0
),
"yes"
))
choices
.
brickwall
=
1
;
if
(
!
strcmp
(
lookup_choice
(
"SystemFont:no"
,
0
,
0
),
"yes"
))
choices
.
systemfont
=
1
;
if
(
!
strcmp
(
lookup_choice
(
"DelayImage:yes"
,
0
,
0
),
"yes"
))
choices
.
delayimages
=
1
;
if
(
!
strcmp
(
lookup_choice
(
"DisplayBgs:yes"
,
0
,
0
),
"yes"
))
choices
.
displaybgs
=
1
;
if
(
!
strcmp
(
lookup_choice
(
"UnderlineLks:yes"
,
0
,
0
),
"yes"
))
choices
.
underlinelks
=
1
;
...
...
This diff is collapsed.
Click to expand it.
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