Changeset 51 for libcaca/trunk/src/graphics.c
- Timestamp:
- Dec 23, 2002, 11:06:27 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/src/graphics.c
r37 r51 4 4 * All Rights Reserved 5 5 * 6 * $Id: graphics.c,v 1. 4 2002/12/22 18:44:12sam Exp $6 * $Id: graphics.c,v 1.5 2002/12/23 10:06:27 sam Exp $ 7 7 * 8 8 * This program is free software; you can redistribute it and/or modify … … 50 50 SLsmg_cls(); 51 51 SLsmg_refresh(); 52 #el se52 #elif USE_NCURSES 53 53 /* Initialize ncurses library */ 54 54 initscr(); … … 58 58 noecho(); 59 59 nodelay(stdscr, TRUE); 60 #else 61 /* Dummy driver */ 60 62 #endif 61 63 … … 81 83 g->w = SLtt_Screen_Cols; 82 84 g->h = SLtt_Screen_Rows; 83 #el se85 #elif USE_NCURSES 84 86 start_color(); 85 87 … … 97 99 g->w = COLS; 98 100 g->h = LINES; 101 #else 102 /* Use dummy driver */ 103 g->w = 80; 104 g->h = 25; 99 105 #endif 100 106 } … … 107 113 return SLang_getkey(); 108 114 } 109 #el se115 #elif USE_NCURSES 110 116 char key; 111 117 … … 114 120 return key; 115 121 } 122 #else 123 /* Use dummy driver */ 116 124 #endif 117 125 … … 123 131 #ifdef USE_SLANG 124 132 SLsmg_cls(); 133 #elif USE_NCURSES 134 clear(); 125 135 #else 126 clear();136 /* Use dummy driver */ 127 137 #endif 128 138 } … … 133 143 #ifdef USE_SLANG 134 144 SLsmg_refresh(); 145 #elif USE_NCURSES 146 refresh(); 135 147 #else 136 refresh();148 /* Use dummy driver */ 137 149 #endif 138 150 } … … 143 155 SLang_reset_tty(); 144 156 SLsmg_reset_smg(); 157 #elif USE_NCURSES 158 endwin(); 145 159 #else 146 endwin();160 /* Use dummy driver */ 147 161 #endif 148 162 } 149 163 150
Note: See TracChangeset
for help on using the changeset viewer.