Changeset 167 for libcaca/trunk/libee/ee.c
- Timestamp:
- Nov 13, 2003, 5:45:25 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/libee/ee.c
r159 r167 68 68 69 69 static int _ee_delay; 70 char *_ee_empty_line; 70 71 71 72 #if defined(USE_NCURSES) … … 167 168 168 169 #elif defined(USE_CONIO) 170 gettextinfo(&ti); 171 _ee_screen = malloc(2 * ti.screenwidth * ti.screenheight); 172 if(_ee_screen == NULL) 173 return -1; 169 174 _wscroll = 0; 170 175 _setcursortype(_NOCURSOR); 171 176 clrscr(); 172 gettextinfo(&ti);173 _ee_screen = malloc(2 * ti.screenwidth * ti.screenheight);174 177 # if defined(SCREENUPDATE_IN_PC_H) 175 178 ScreenRetrieve(_ee_screen); … … 179 182 180 183 #endif 184 _ee_empty_line = malloc(ee_get_width() + 1); 185 memset(_ee_empty_line, ' ', ee_get_width()); 186 _ee_empty_line[ee_get_width()] = '\0'; 187 181 188 _ee_delay = 0; 182 189
Note: See TracChangeset
for help on using the changeset viewer.