1 2void 3poll_and_flame(SDL_Event *ev); 4void 5clear_screen_to_flame(void); 6void 7setup_colors(SDL_Surface *screen); 8#define DRAW_CENTER (1<<0) 9#define DRAW_ABOVE (1<<1) 10#define DRAW_LEFT (1<<2) 11#define DRAW_UPDATE (1<<3) 12#define DRAW_CLEAR (1<<4) 13#define DRAW_HUGE (1<<5) 14#define DRAW_LARGE (1<<6) 15#define DRAW_GRID_0 (1<<7) 16int 17draw_string(char *text, SDL_Color sc, int x, int y, int flags); 18int 19give_notice(char *s, int quit_possible); 20void 21draw_bordered_rect(SDL_Rect *orig, SDL_Rect *border, int thick); 22void 23draw_pre_bordered_rect(SDL_Rect *border, int thick); 24void 25setup_layers(SDL_Surface * screen); 26void 27draw_background(SDL_Surface *screen, int blockWidth, Grid g[], 28 int level[], int my_adj[], int their_adj[], char *name[]); 29void 30draw_pause(int on); 31void 32draw_clock(int seconds); 33void 34draw_score(SDL_Surface *screen, int i); 35void 36draw_next_piece(SDL_Surface *screen, piece_style *ps, color_style *cs, 37 play_piece *cp, play_piece *np, int P); 38