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/conic.c

    r205 r246  
    192192    uint8_t b = 0;
    193193
    194     if(xo + x >= 0 && xo + x < (int)caca_get_width())
     194    if(xo + x >= 0 && xo + x < (int)_caca_width)
    195195        b |= 0x1;
    196     if(xo - x >= 0 && xo - x < (int)caca_get_width())
     196    if(xo - x >= 0 && xo - x < (int)_caca_width)
    197197        b |= 0x2;
    198     if(yo + y >= 0 && yo + y < (int)caca_get_height())
     198    if(yo + y >= 0 && yo + y < (int)_caca_height)
    199199        b |= 0x4;
    200     if(yo - y >= 0 && yo - y < (int)caca_get_height())
     200    if(yo - y >= 0 && yo - y < (int)_caca_height)
    201201        b |= 0x8;
    202202
Note: See TracChangeset for help on using the changeset viewer.