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
f48270e1
Commit
f48270e1
authored
19 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Rename vmem to ansivmem (OSX linker complains of conflict between console
ans ansi_cio)
parent
342926b2
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/ansi_cio.c
+6
-6
6 additions, 6 deletions
src/conio/ansi_cio.c
with
6 additions
and
6 deletions
src/conio/ansi_cio.c
+
6
−
6
View file @
f48270e1
...
...
@@ -68,7 +68,7 @@ const int ansi_tabs[10]={9,17,25,33,41,49,57,65,73,80};
const
int
ansi_colours
[
8
]
=
{
0
,
4
,
2
,
6
,
1
,
5
,
3
,
7
};
static
WORD
ansi_inch
;
static
unsigned
char
ansi_raw_inch
;
WORD
*
vmem
;
WORD
*
ansi
vmem
;
int
ansi_row
=
0
;
int
ansi_col
=
0
;
int
force_move
=
1
;
...
...
@@ -238,9 +238,9 @@ int ansi_puttext(int sx, int sy, int ex, int ey, void* buf)
if
(
sch
==
0
)
sch
=
' '
;
sch
|=
(
*
(
out
++
))
<<
8
;
if
(
vmem
[
y
*
ansi_cols
+
x
]
==
sch
)
if
(
ansi
vmem
[
y
*
ansi_cols
+
x
]
==
sch
)
continue
;
vmem
[
y
*
ansi_cols
+
x
]
=
sch
;
ansi
vmem
[
y
*
ansi_cols
+
x
]
=
sch
;
ansi_gotoxy
(
x
+
1
,
y
+
1
);
if
(
attrib
!=
sch
>>
8
)
{
textattr
(
sch
>>
8
);
...
...
@@ -283,7 +283,7 @@ int ansi_gettext(int sx, int sy, int ex, int ey, void* buf)
out
=
fill
;
for
(
y
=
sy
-
1
;
y
<
ey
;
y
++
)
{
for
(
x
=
sx
-
1
;
x
<
ex
;
x
++
)
{
sch
=
vmem
[
y
*
ansi_cols
+
x
];
sch
=
ansi
vmem
[
y
*
ansi_cols
+
x
];
*
(
out
++
)
=
sch
&
0xff
;
*
(
out
++
)
=
sch
>>
8
;
}
...
...
@@ -761,10 +761,10 @@ int ansi_initciolib(long inmode)
sem_init
(
&
goahead
,
0
,
0
);
sem_init
(
&
need_key
,
0
,
0
);
vmem
=
(
WORD
*
)
malloc
(
ansi_rows
*
ansi_cols
*
sizeof
(
WORD
));
ansi
vmem
=
(
WORD
*
)
malloc
(
ansi_rows
*
ansi_cols
*
sizeof
(
WORD
));
ansi_sendstr
(
init
,
-
1
);
for
(
i
=
0
;
i
<
ansi_rows
*
ansi_cols
;
i
++
)
vmem
[
i
]
=
0x0720
;
ansi
vmem
[
i
]
=
0x0720
;
_beginthread
(
ansi_keythread
,
1024
,
NULL
);
return
(
1
);
}
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