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
1036eac7
Commit
1036eac7
authored
5 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Use the COLOR_PALETTE for uifc, no need for setfont() anymore since uifc
always uses font zero now.
parent
b2b234e6
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/syncterm/uifcinit.c
+8
-18
8 additions, 18 deletions
src/syncterm/uifcinit.c
with
8 additions
and
18 deletions
src/syncterm/uifcinit.c
+
8
−
18
View file @
1036eac7
...
...
@@ -6,6 +6,7 @@
#include
<stdio.h>
#include
<ciolib.h>
#include
<vidmodes.h>
#include
<uifc.h>
#include
"uifcinit.h"
...
...
@@ -23,6 +24,7 @@ int orig_ciolib_xlat;
int
orig_vidflags
;
int
orig_x
;
int
orig_y
;
uint32_t
orig_palette
[
16
];
int
init_uifc
(
BOOL
scrn
,
BOOL
bottom
)
{
int
i
;
...
...
@@ -46,6 +48,8 @@ int init_uifc(BOOL scrn, BOOL bottom) {
}
bottomfunc
=
uifc
.
bottomline
;
uifc_initialized
=
UIFC_INIT
;
get_modepalette
(
orig_palette
);
set_modepalette
(
palettes
[
COLOUR_PALETTE
]);
}
if
(
scrn
)
{
...
...
@@ -82,6 +86,7 @@ void uifcbail(void)
if
(
uifc_initialized
)
{
uifc
.
bail
();
ciolib_xlat
=
orig_ciolib_xlat
;
set_modepalette
(
orig_palette
);
setvideoflags
(
orig_vidflags
);
loadfont
(
NULL
);
gotoxy
(
orig_x
,
orig_y
);
...
...
@@ -95,13 +100,8 @@ void uifcmsg(char *msg, char *helpbuf)
struct
ciolib_screen
*
savscrn
;
i
=
uifc_initialized
;
if
(
!
i
)
{
if
(
!
i
)
savscrn
=
savescreen
();
setfont
(
0
,
FALSE
,
1
);
setfont
(
0
,
FALSE
,
2
);
setfont
(
0
,
FALSE
,
3
);
setfont
(
0
,
FALSE
,
4
);
}
init_uifc
(
FALSE
,
FALSE
);
if
(
uifc_initialized
)
{
uifc
.
helpbuf
=
helpbuf
;
...
...
@@ -123,13 +123,8 @@ void uifcinput(char *title, int len, char *msg, int mode, char *helpbuf)
struct
ciolib_screen
*
savscrn
;
i
=
uifc_initialized
;
if
(
!
i
)
{
if
(
!
i
)
savscrn
=
savescreen
();
setfont
(
0
,
FALSE
,
1
);
setfont
(
0
,
FALSE
,
2
);
setfont
(
0
,
FALSE
,
3
);
setfont
(
0
,
FALSE
,
4
);
}
init_uifc
(
FALSE
,
FALSE
);
if
(
uifc_initialized
)
{
uifc
.
helpbuf
=
helpbuf
;
...
...
@@ -157,13 +152,8 @@ int confirm(char *msg, char *helpbuf)
int
copt
=
0
;
i
=
uifc_initialized
;
if
(
!
i
)
{
if
(
!
i
)
savscrn
=
savescreen
();
setfont
(
0
,
FALSE
,
1
);
setfont
(
0
,
FALSE
,
2
);
setfont
(
0
,
FALSE
,
3
);
setfont
(
0
,
FALSE
,
4
);
}
init_uifc
(
FALSE
,
FALSE
);
if
(
uifc_initialized
)
{
uifc
.
helpbuf
=
helpbuf
;
...
...
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