Ignore:
Timestamp:
Dec 11, 2003, 5:31:49 PM (19 years ago)
Author:
Sam Hocevar
Message:
  • src/graphics.c: + Internally cache screen width and height.
  • src/bitmap.c: + Added alpha support to caca_draw_bitmap(). For now, we only treat 0%

alpha as fully transparent, and any other value as fully opaque.

+ Slightly tuned colour weights in the renderer.
+ caca_set_bitmap_palette() takes unsigned ints.

  • examples/demo.c: + Added a crap render demo.
  • examples/aafire.c: + Set a 20ms delay. + Added alpha values to the palette.
  • examples/view.c: + Draw a gray checkered grid below the image so that transparent images

look a lot nicer.

+ 'f' toggles "fullscreen" mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src/box.c

    r205 r246  
    5959    }
    6060
    61     xmax = caca_get_width() - 1;
    62     ymax = caca_get_height() - 1;
     61    xmax = _caca_width - 1;
     62    ymax = _caca_height - 1;
    6363
    6464    if(x2 < 0 || y2 < 0 || x1 > xmax || y1 > ymax)
     
    112112    }
    113113
    114     xmax = caca_get_width() - 1;
    115     ymax = caca_get_height() - 1;
     114    xmax = _caca_width - 1;
     115    ymax = _caca_height - 1;
    116116
    117117    if(x2 < 0 || y2 < 0 || x1 > xmax || y1 > ymax)
Note: See TracChangeset for help on using the changeset viewer.