MAde the second parameter of tgi_ioctl a void* instead of an unsigned to keep

the interface more uniform between the driver APIs.


git-svn-id: svn://svn.cc65.org/cc65/trunk@4518 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2009-12-11 14:33:53 +00:00
parent 14030c0852
commit 36cf23680c
4 changed files with 17 additions and 17 deletions

View File

@@ -103,13 +103,13 @@ void __fastcall__ lynx_eeprom_erase (unsigned char cell);
/* TGI extras */
/*****************************************************************************/
#define tgi_sprite(spr) tgi_ioctl(0, (unsigned)(spr))
#define tgi_flip() tgi_ioctl(1, 0)
#define tgi_setbgcolor(bgcol) tgi_ioctl(2, (unsigned)(bgcol))
#define tgi_setframerate(rate) tgi_ioctl(3, (unsigned)(rate))
#define tgi_busy() tgi_ioctl(4, 0)
#define tgi_updatedisplay() tgi_ioctl(4, 1)
#define tgi_setcollisiondetection(active) tgi_ioctl(5, (unsigned)(active))
#define tgi_sprite(spr) tgi_ioctl(0, spr)
#define tgi_flip() tgi_ioctl(1, (void*)0)
#define tgi_setbgcolor(bgcol) tgi_ioctl(2, (void*)(bgcol))
#define tgi_setframerate(rate) tgi_ioctl(3, (void*)(rate))
#define tgi_busy() tgi_ioctl(4, (void*)0)
#define tgi_updatedisplay() tgi_ioctl(4, (void*)1)
#define tgi_setcollisiondetection(active) tgi_ioctl(5, (void*)(active))
/* End of lynx.h */
#endif

View File

@@ -270,7 +270,7 @@ void __fastcall__ tgi_outtextxy (int x, int y, const char* s);
* the end of the text.
*/
unsigned __fastcall__ tgi_ioctl (unsigned char code, unsigned val);
unsigned __fastcall__ tgi_ioctl (unsigned char code, void* data);
/* Call the driver specific control function. What this function does for
* a specific code depends on the driver. The driver will set an error
* for unknown codes or values.