Ignore:
Timestamp:
Nov 30, 2003, 3:11:37 AM (17 years ago)
Author:
Sam Hocevar
Message:
  • src/bitmap.c examples/view.c: + Fixed an endianness issue in caca_draw_bitmap(). + Code cleanup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/examples/view.c

    r236 r237  
    216216            if(yn + y > h) y = h - yn;
    217217            newbitmap = caca_create_bitmap(32, 2 * xn, 2 * yn, 4 * w,
    218                                        0x00ff0000, 0x0000ff00, 0x000000ff);
     218                                       0x0000ff00, 0x00ff0000, 0xff000000);
    219219            caca_draw_bitmap(0, 0, ww - 1, wh - 1, newbitmap,
    220220                             pixels + 4 * (x - xn) + 4 * w * (y - yn));
     
    299299    /* Create the libcaca bitmap */
    300300    bitmap = caca_create_bitmap(32, w, h, 4 * w,
    301                                 0x00ff0000, 0x0000ff00, 0x000000ff);
     301                                0x0000ff00, 0x00ff0000, 0xff000000);
    302302    if(!bitmap)
    303303    {
Note: See TracChangeset for help on using the changeset viewer.