- Added some icons.

- Made sure all icon and vbar functions are not the old API functions.
- Removed heartbeat functions from drivers that did standard heartbeat.
This commit is contained in:
robijn
2002-05-23 18:03:36 +00:00
parent 450d05274f
commit dc4c049721
41 changed files with 355 additions and 560 deletions
+10 -4
View File
@@ -502,7 +502,7 @@ glk_set_char(Driver *drvthis, int n, char *dat)
// Draws a vertical bar, from the bottom of the screen up.
//
MODULE_EXPORT void
glk_vbar(Driver *drvthis, int x, int len)
glk_old_vbar(Driver *drvthis, int x, int len)
{
int y = height ;
@@ -533,7 +533,7 @@ glk_vbar(Driver *drvthis, int x, int len)
// Draws a horizontal bar to the right.
//
MODULE_EXPORT void
glk_hbar(Driver *drvthis, int x, int y, int len)
glk_old_hbar(Driver *drvthis, int x, int y, int len)
{
// printf( "glk_hbar( %d, %d, %d )\n", x, y, len );
while( len > cellwidth ) {
@@ -561,8 +561,11 @@ glk_hbar(Driver *drvthis, int x, int y, int len)
// Sets character 0 to an icon...
//
MODULE_EXPORT void
glk_icon(Driver *drvthis, int which, char dest)
glk_old_icon(Driver *drvthis, int which, int dest)
{
/* TODO IMPLEMENTATION OF NEW API */
/* any volonteers ? */
unsigned char old, new ;
unsigned char * p ;
unsigned char * q ;
@@ -610,8 +613,11 @@ glk_icon(Driver *drvthis, int which, char dest)
// Return 0 for "nothing available".
//
MODULE_EXPORT char
glk_getkey(Driver *drvthis)
glk_old_getkey(Driver *drvthis)
{
/* NOTE THAT THIS CODE IS NOT USED IN THE NEW API */
/* It uses get_key instead, returning a string */
int c ;
static int key = -1 ;
static struct timeval lastkey ;