|
|
1.1 ! root 1: /* ! 2: * UAE - The Un*x Amiga Emulator ! 3: * ! 4: * Interface to the graphics system (X, SVGAlib) ! 5: * ! 6: * (c) 1995 Bernd Schmidt ! 7: */ ! 8: ! 9: extern void graphics_init(void); ! 10: extern void graphics_leave(void); ! 11: extern void handle_events(void); ! 12: ! 13: extern void prepare_line(int, bool); ! 14: extern void flush_line(void); ! 15: extern void flush_screen(void); ! 16: ! 17: extern bool debuggable(void); ! 18: extern bool needmousehack(void); ! 19: extern void togglemouse(void); ! 20: extern void LED(int); ! 21: ! 22: typedef long int xcolnr; ! 23: ! 24: extern xcolnr xcolors[4096]; ! 25: ! 26: extern bool buttonstate[3]; ! 27: extern bool newmousecounters; ! 28: extern int lastmx, lastmy; ! 29: ! 30: #ifdef INLINE_DRAWPIXEL ! 31: ! 32: extern char *xlinebuffer; ! 33: ! 34: static __inline__ void DrawPixel(int x, xcolnr col) ! 35: { ! 36: #ifdef INLINE_DRAWPIXEL16 ! 37: *(short *)xlinebuffer = col; ! 38: xlinebuffer+=2; ! 39: #endif ! 40: #ifdef INLINE_DRAWPIXEL8 ! 41: *(char *)xlinebuffer = col; ! 42: xlinebuffer++; ! 43: #endif ! 44: } ! 45: ! 46: #else ! 47: #ifdef __mac__ ! 48: extern char *xlinebuffer; ! 49: ! 50: static inline void DrawPixel(int x, xcolnr col) ! 51: { ! 52: ((short *)xlinebuffer)[x] = col; ! 53: } ! 54: #else /* not INLINE_DRAWPIXEL */ ! 55: ! 56: extern void (*DrawPixel)(int, xcolnr); ! 57: ! 58: #endif ! 59: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.