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
632ff18d
Commit
632ff18d
authored
15 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Get rid of some magic number usage.
parent
be38761e
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/ciolib.c
+5
-3
5 additions, 3 deletions
src/conio/ciolib.c
with
5 additions
and
3 deletions
src/conio/ciolib.c
+
5
−
3
View file @
632ff18d
...
...
@@ -71,7 +71,7 @@ CIOLIBEXPORT cioapi_t cio_api;
static
const
int
tabs
[]
=
{
1
,
9
,
17
,
25
,
33
,
41
,
49
,
57
,
65
,
73
,
81
,
89
,
97
,
105
,
113
,
121
,
129
,
137
,
145
};
static
int
ungotch
;
struct
text_info
cio_textinfo
;
static
int
lastmode
=
3
;
static
int
lastmode
=
C80
;
CIOLIBEXPORT
int
_wscroll
=
1
;
CIOLIBEXPORT
int
directvideo
=
0
;
CIOLIBEXPORT
int
hold_update
=
0
;
...
...
@@ -367,7 +367,7 @@ CIOLIBEXPORT int CIOLIBCALL initciolib(int mode)
cio_textinfo
.
normattr
=
14
;
break
;
default:
cio_textinfo
.
normattr
=
7
;
cio_textinfo
.
normattr
=
LIGHTGRAY
;
}
_beginthread
(
ciolib_mouse_thread
,
0
,
NULL
);
return
(
0
);
...
...
@@ -701,13 +701,15 @@ CIOLIBEXPORT void CIOLIBCALL ciolib_textmode(int mode)
{
CIOLIB_INIT
();
if
(
mode
==
-
1
)
{
if
(
mode
==
LASTMODE
)
{
cio_api
.
textmode
(
lastmode
);
lastmode
=
cio_textinfo
.
currmode
;
}
else
{
if
(
mode
==
64
)
mode
=
C80X50
;
if
(
mode
==
_ORIGMODE
)
mode
=
C80
;
lastmode
=
cio_textinfo
.
currmode
;
cio_api
.
textmode
(
mode
);
}
...
...
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