Changeset 69 for libcaca/trunk/src/main.c
- Timestamp:
- Feb 9, 2003, 12:17:40 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/src/main.c
r63 r69 4 4 * All Rights Reserved 5 5 * 6 * $Id: main.c,v 1.1 6 2002/12/23 16:21:38sam Exp $6 * $Id: main.c,v 1.17 2003/02/09 11:17:40 sam Exp $ 7 7 * 8 8 * This program is free software; you can redistribute it and/or modify … … 61 61 int skip = 0; 62 62 int purcompteur = 0; 63 64 box *pausebox = NULL; 63 65 64 66 g->sf = create_starfield( g ); … … 91 93 case 'p': 92 94 poz = !poz; 95 if( poz ) 96 { 97 pausebox = create_box( g, g->w / 2, g->h / 2, 98 g->w - 16, 8 ); 99 } 100 else 101 { 102 free_box( pausebox ); 103 } 93 104 break; 94 105 case '\t': … … 216 227 draw_weapons( g, g->wp ); 217 228 draw_player( g, g->p ); 218 draw_overlay( g ); 229 draw_status( g ); 230 231 /* Print pause box if needed */ 232 if( poz ) 233 { 234 pausebox->frame++; 235 draw_box( g, pausebox ); 236 } 219 237 220 238 /* Refresh */ … … 222 240 223 241 purcompteur++; 242 } 243 244 if( pausebox ) 245 { 246 free_box( pausebox ); 224 247 } 225 248
Note: See TracChangeset
for help on using the changeset viewer.