typedef unsigned char u8; typedef char s8; typedef unsigned short u16; typedef short s16; typedef unsigned long u32; typedef long s32; typedef const char cs8; #define T_ESCAPE 264 #define T_ENTER 13 #define T_DELETE 257 #define T_APPS 265 #define T_BACKSPACE 257 #define T_HAUT 338 #define T_BAS 344 SCR_RECT ECRAN = {{0, 0, 239, 127}} ; void wait(short TEMPS) { OSFreeTimer (USER_TIMER); OSRegisterTimer(USER_TIMER,TEMPS); while (!OSTimerExpired(USER_TIMER) && !kbhit()) idle(); GKeyFlush(); } short keywait() { //GKeyFlush(); while (!kbhit()) idle(); push_getkey(); ESI argptr=top_estack; return GetIntArg(argptr)&32767; //return ngetchx(); } short range(short arg,short rg1,short rg2,short defaut) { if (arg==-1) arg=defaut; if (arg>=rg1 && arg<=rg2) return arg; if (arg>260 && arg<740) arg=defaut+(arg-500); if (argrg2) arg=rg2; return arg; } static inline void bitmap_put(short x, short y, unsigned char *pic) { WinBitmapPut(DeskTop,x, y, pic+2, 1) ; }