Skip to content
Snippets Groups Projects
Commit d15e6d15 authored by deuce's avatar deuce
Browse files

Fix to follow Borland prototypes.

parent 17a50ff5
No related branches found
No related tags found
No related merge requests found
...@@ -54,7 +54,7 @@ short curses_color(short color) ...@@ -54,7 +54,7 @@ short curses_color(short color)
return(0); return(0);
} }
int curs_puttext(int sx, int sy, int ex, int ey, unsigned char *fill) int curs_puttext(int sx, int sy, int ex, int ey, void *fillbuf)
{ {
int x,y; int x,y;
int fillpos=0; int fillpos=0;
...@@ -63,7 +63,9 @@ int curs_puttext(int sx, int sy, int ex, int ey, unsigned char *fill) ...@@ -63,7 +63,9 @@ int curs_puttext(int sx, int sy, int ex, int ey, unsigned char *fill)
unsigned char orig_attr; unsigned char orig_attr;
int oldx, oldy; int oldx, oldy;
struct text_info ti; struct text_info ti;
unsigned char *fill;
fill=fillbuf;
gettextinfo(&ti); gettextinfo(&ti);
if( sx < 1 if( sx < 1
...@@ -98,7 +100,7 @@ int curs_puttext(int sx, int sy, int ex, int ey, unsigned char *fill) ...@@ -98,7 +100,7 @@ int curs_puttext(int sx, int sy, int ex, int ey, unsigned char *fill)
return(1); return(1);
} }
int curs_gettext(int sx, int sy, int ex, int ey, unsigned char *fill) int curs_gettext(int sx, int sy, int ex, int ey, void *fillbuf)
{ {
int x,y; int x,y;
int fillpos=0; int fillpos=0;
...@@ -109,7 +111,9 @@ int curs_gettext(int sx, int sy, int ex, int ey, unsigned char *fill) ...@@ -109,7 +111,9 @@ int curs_gettext(int sx, int sy, int ex, int ey, unsigned char *fill)
unsigned char thischar; unsigned char thischar;
int ext_char; int ext_char;
struct text_info ti; struct text_info ti;
unsigned char *fill;
fill=fillbuf;
gettextinfo(&ti); gettextinfo(&ti);
if( sx < 1 if( sx < 1
...@@ -361,7 +365,7 @@ int curs_gettext(int sx, int sy, int ex, int ey, unsigned char *fill) ...@@ -361,7 +365,7 @@ int curs_gettext(int sx, int sy, int ex, int ey, unsigned char *fill)
return(1); return(1);
} }
void curs_textattr(unsigned char attr) void curs_textattr(int attr)
{ {
chtype attrs=A_NORMAL; chtype attrs=A_NORMAL;
int colour; int colour;
...@@ -670,7 +674,7 @@ void curs_setcursortype(int type) { ...@@ -670,7 +674,7 @@ void curs_setcursortype(int type) {
refresh(); refresh();
} }
int curs_putch(unsigned char c) int curs_putch(int c)
{ {
struct text_info ti; struct text_info ti;
int ret; int ret;
......
...@@ -10,15 +10,15 @@ ...@@ -10,15 +10,15 @@
extern "C" { extern "C" {
#endif #endif
short curses_color(short color); short curses_color(short color);
int curs_puttext(int sx, int sy, int ex, int ey, unsigned char *fill); int curs_puttext(int sx, int sy, int ex, int ey, void *fill);
int curs_gettext(int sx, int sy, int ex, int ey, unsigned char *fill); int curs_gettext(int sx, int sy, int ex, int ey, void *fill);
void curs_textattr(unsigned char attr); void curs_textattr(int attr);
int curs_kbhit(void); int curs_kbhit(void);
void curs_delay(long msec); void curs_delay(long msec);
int curs_wherey(void); int curs_wherey(void);
int curs_wherex(void); int curs_wherex(void);
int _putch(unsigned char ch, BOOL refresh_now); int _putch(unsigned char ch, BOOL refresh_now);
int curs_putch(unsigned char ch); int curs_putch(int ch);
void curs_gotoxy(int x, int y); void curs_gotoxy(int x, int y);
int curs_initciolib(long inmode); int curs_initciolib(long inmode);
void curs_gettextinfo(struct text_info *info); void curs_gettextinfo(struct text_info *info);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment