Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
835a8cc1
Commit
835a8cc1
authored
13 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Font support requires conio support.
parent
26bf5826
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/conio/cterm.c
+4
-1
4 additions, 1 deletion
src/conio/cterm.c
with
4 additions
and
1 deletion
src/conio/cterm.c
+
4
−
1
View file @
835a8cc1
...
...
@@ -1414,7 +1414,7 @@ char *cterm_write(struct cterminal * cterm, const unsigned char *buf, int buflen
if
(
cterm
->
font_size
)
{
cterm
->
fontbuf
[
cterm
->
font_read
++
]
=
ch
[
0
];
if
(
cterm
->
font_read
==
cterm
->
font_size
)
{
// TODO: Need to make this bit optional...
#ifndef CTERM_WITHOUT_CONIO
char
*
buf
;
if
((
buf
=
(
char
*
)
malloc
(
cterm
->
font_size
))
!=
NULL
)
{
...
...
@@ -1444,6 +1444,7 @@ char *cterm_write(struct cterminal * cterm, const unsigned char *buf, int buflen
else
FREE_AND_NULL
(
buf
);
}
#ifndef CTERM_WITHOUT_CONIO
cterm
->
font_size
=
0
;
}
}
...
...
@@ -2112,12 +2113,14 @@ void cterm_end(struct cterminal *cterm)
int
i
;
cterm_closelog
(
cterm
);
#ifndef CTERM_WITHOUT_CONIO
for
(
i
=
CONIO_FIRST_FREE_FONT
;
i
<
256
;
i
++
)
{
FREE_AND_NULL
(
conio_fontdata
[
i
].
eight_by_sixteen
);
FREE_AND_NULL
(
conio_fontdata
[
i
].
eight_by_fourteen
);
FREE_AND_NULL
(
conio_fontdata
[
i
].
eight_by_eight
);
FREE_AND_NULL
(
conio_fontdata
[
i
].
desc
);
}
#endif
if
(
cterm
->
playnote_thread_running
)
{
if
(
sem_trywait
(
&
cterm
->
playnote_thread_terminated
)
==-
1
)
{
listSemPost
(
&
cterm
->
notes
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment