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
04cc6cbb
Commit
04cc6cbb
authored
17 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Bug fixes from last nights commit
parent
80287d0c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/conio/ciolib.c
+3
-2
3 additions, 2 deletions
src/conio/ciolib.c
src/conio/ciolib.h
+2
-0
2 additions, 0 deletions
src/conio/ciolib.h
src/conio/win32cio.c
+4
-4
4 additions, 4 deletions
src/conio/win32cio.c
with
9 additions
and
6 deletions
src/conio/ciolib.c
+
3
−
2
View file @
04cc6cbb
...
...
@@ -1023,9 +1023,10 @@ CIOLIBEXPORT int CIOLIBCALL ciolib_putch(int a)
unsigned
char
a1
=
a
;
unsigned
char
buf
[
2
];
int
i
;
CIOLIB_INIT
();
int
old_puttext_can_move
=
puttext_can_move
;
CIOLIB_INIT
();
if
(
cio_api
.
putch
)
return
(
cio_api
.
putch
(
a1
));
...
...
@@ -1243,7 +1244,7 @@ CIOLIBEXPORT int CIOLIBCALL ciolib_get_window_info(int *width, int *height, int
}
/* Optional */
CIOLIBEXPORT
int
ciolib_beep
(
void
)
CIOLIBEXPORT
int
CIOLIBCALL
ciolib_beep
(
void
)
{
if
(
cio_api
.
beep
)
return
(
cio_api
.
beep
());
...
...
This diff is collapsed.
Click to expand it.
src/conio/ciolib.h
+
2
−
0
View file @
04cc6cbb
...
...
@@ -313,6 +313,7 @@ CIOLIBEXPORT int CIOLIBCALL ciolib_setfont(int font, int force);
CIOLIBEXPORT
int
CIOLIBCALL
ciolib_getfont
(
void
);
CIOLIBEXPORT
int
CIOLIBCALL
ciolib_loadfont
(
char
*
filename
);
CIOLIBEXPORT
int
CIOLIBCALL
ciolib_get_window_info
(
int
*
width
,
int
*
height
,
int
*
xpos
,
int
*
ypos
);
CIOLIBEXPORT
int
CIOLIBCALL
ciolib_beep
(
void
);
/* DoorWay specific stuff that's only applicable to ANSI mode. */
CIOLIBEXPORT
void
CIOLIBCALL
ansi_ciolib_setdoorway
(
int
enable
);
...
...
@@ -367,6 +368,7 @@ CIOLIBEXPORT void CIOLIBCALL ansi_ciolib_setdoorway(int enable);
#define getfont() ciolib_getfont()
#define loadfont(a) ciolib_loadfont(a)
#define get_window_info(a,b,c,d) ciolib_get_window_info(a,b,c,d)
#define beep() ciolib_beep()
#endif
#ifdef WITH_SDL
...
...
This diff is collapsed.
Click to expand it.
src/conio/win32cio.c
+
4
−
4
View file @
04cc6cbb
...
...
@@ -532,8 +532,8 @@ void win32_textmode(int mode)
cio_textinfo
.
attribute
=
7
;
cio_textinfo
.
normattr
=
7
;
cio_textinfo
.
currmode
=
vparams
[
modei
s
x
].
mode
;
cio_textinfo
.
screenheightsz
.
Y
;
cio_textinfo
.
currmode
=
vparams
[
modei
d
x
].
mode
;
cio_textinfo
.
screenheight
=
sz
.
Y
;
cio_textinfo
.
screenwidth
=
sz
.
X
;
cio_textinfo
.
curx
=
1
;
cio_textinfo
.
cury
=
1
;
...
...
@@ -580,8 +580,8 @@ void win32_gotoxy(int x, int y)
COORD
cp
;
HANDLE
h
;
cio_te
rm
info
.
curx
=
x
;
cio_te
rm
info
.
cury
=
y
;
cio_te
xt
info
.
curx
=
x
;
cio_te
xt
info
.
cury
=
y
;
cp
.
X
=
x
-
1
;
cp
.
Y
=
y
-
1
;
if
(
!
hold_update
&&
(
h
=
GetStdHandle
(
STD_OUTPUT_HANDLE
))
!=
INVALID_HANDLE_VALUE
)
...
...
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