Changeset 1882 for libcaca/trunk/src/cacaview.c
- Timestamp:
- Nov 4, 2007, 1:00:03 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/src/cacaview.c
r1836 r1882 65 65 int main(int argc, char **argv) 66 66 { 67 char const * const * dithers = cucul_get_dither_mode_list(NULL);68 int dither_ mode= 0;67 char const * const * algos = cucul_get_dither_algorithm_list(NULL); 68 int dither_algorithm = 0; 69 69 70 70 int quit = 0, update = 1, help = 0, status = 0; … … 207 207 #endif 208 208 case 'd': 209 dither_mode++; 210 if(dithers[dither_mode * 2] == NULL) 211 dither_mode = 0; 212 cucul_set_dither_mode(im->dither, dithers[dither_mode * 2]); 209 dither_algorithm++; 210 if(algos[dither_algorithm * 2] == NULL) 211 dither_algorithm = 0; 212 cucul_set_dither_algorithm(im->dither, 213 algos[dither_algorithm * 2]); 213 214 new_status = STATUS_DITHERING; 214 215 update = 1; 215 216 break; 216 217 case 'D': 217 dither_mode--; 218 if(dither_mode < 0) 219 while(dithers[dither_mode * 2 + 2] != NULL) 220 dither_mode++; 221 cucul_set_dither_mode(im->dither, dithers[dither_mode * 2]); 218 dither_algorithm--; 219 if(dither_algorithm < 0) 220 while(algos[dither_algorithm * 2 + 2] != NULL) 221 dither_algorithm++; 222 cucul_set_dither_algorithm(im->dither, 223 algos[dither_algorithm * 2]); 222 224 new_status = STATUS_DITHERING; 223 225 update = 1; … … 386 388 print_status(); 387 389 388 #if 0 /* FIXME */389 390 cucul_set_color_ansi(cv, CUCUL_LIGHTGRAY, CUCUL_BLACK); 390 391 switch(status) 391 392 { 393 case STATUS_DITHERING: 394 cucul_printf(cv, 0, wh - 1, "Dithering: %s", 395 cucul_get_dither_algorithm(im->dither)); 396 break; 397 #if 0 /* FIXME */ 392 398 case STATUS_ANTIALIASING: 393 399 cucul_printf(cv, 0, wh - 1, "Antialiasing: %s", 394 400 cucul_get_feature_name(cucul_get_feature(cv, CUCUL_ANTIALIASING))); 395 break;396 case STATUS_DITHERING:397 cucul_printf(cv, 0, wh - 1, "Dithering: %s",398 cucul_get_feature_name(cucul_get_feature(cv, CUCUL_DITHERING)));399 401 break; 400 402 case STATUS_BACKGROUND: … … 402 404 cucul_get_feature_name(cucul_get_feature(cv, CUCUL_BACKGROUND))); 403 405 break; 406 #endif 404 407 } 405 #endif406 408 } 407 409
Note: See TracChangeset
for help on using the changeset viewer.