Changeset 291 for libcaca/trunk/examples/cacaview.c
- Timestamp:
- Dec 31, 2003, 1:05:44 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/examples/cacaview.c
r290 r291 1 1 /* 2 * viewimage viewer for libcaca2 * cacaview image viewer for libcaca 3 3 * Copyright (c) 2003 Sam Hocevar <sam@zoy.org> 4 4 * All Rights Reserved … … 61 61 int x, y; 62 62 unsigned int w, h, depth, bpp, rmask, gmask, bmask, amask; 63 #if !defined(HAVE_IMLIB2_H) 63 64 unsigned int red[256], green[256], blue[256], alpha[256]; 65 #endif 64 66 65 67 int main(int argc, char **argv) … … 288 290 newbitmap = caca_create_bitmap(bpp, 2 * xn, 2 * yn, depth * w, 289 291 rmask, gmask, bmask, amask); 292 #if !defined(HAVE_IMLIB2_H) 290 293 if(bpp == 8) 291 294 caca_set_bitmap_palette(newbitmap, red, green, blue, alpha); 295 #endif 292 296 draw_checkers(0, fullscreen ? 0 : 1, 293 297 ww - 1, fullscreen ? wh - 1 : wh - 3); … … 369 373 static void unload_image(void) 370 374 { 371 #if def HAVE_IMLIB2_H375 #if defined(HAVE_IMLIB2_H) 372 376 if(image) 373 377 imlib_free_image(); … … 386 390 static void load_image(const char *name) 387 391 { 388 #if def HAVE_IMLIB2_H392 #if defined(HAVE_IMLIB2_H) 389 393 /* Load the new image */ 390 394 image = imlib_load_image(name);
Note: See TracChangeset
for help on using the changeset viewer.