Patrick Georgi | 3b77b72 | 2011-07-07 15:41:53 +0200 | [diff] [blame] | 1 | /* Public Domain Curses */ |
| 2 | |
| 3 | /* $Id: pdcsdl.h,v 1.17 2008/07/14 04:24:52 wmcbrine Exp $ */ |
| 4 | |
| 5 | #include <curspriv.h> |
| 6 | |
| 7 | #include <SDL/SDL.h> |
| 8 | |
| 9 | PDCEX SDL_Surface *pdc_screen, *pdc_font, *pdc_icon, *pdc_back; |
| 10 | PDCEX int pdc_sheight, pdc_swidth, pdc_yoffset, pdc_xoffset; |
| 11 | |
| 12 | extern SDL_Surface *pdc_tileback; /* used to regenerate the background |
| 13 | of "transparent" cells */ |
| 14 | extern SDL_Color pdc_color[16]; /* colors for font palette */ |
| 15 | extern Uint32 pdc_mapped[16]; /* colors for FillRect(), as |
| 16 | used in _highlight() */ |
| 17 | extern int pdc_fheight, pdc_fwidth; /* font height and width */ |
| 18 | extern int pdc_flastc; /* font palette's last color |
| 19 | (treated as the foreground) */ |
| 20 | extern bool pdc_own_screen; /* if pdc_screen was not set |
| 21 | before initscr(), PDCurses is |
| 22 | responsible for (owns) it */ |
| 23 | extern Uint32 pdc_lastupdate; /* time of last update, in ticks */ |
| 24 | |
| 25 | void PDC_update_rects(void); |
| 26 | void PDC_retile(void); |