Changeset 1833


Ignore:
Timestamp:
Sep 30, 2007, 6:49:47 PM (16 years ago)
Author:
Sam Hocevar
Message:
  • Save user attributes when calling cucul_dither_bitmap().
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cucul/dither.c

    r1462 r1833  
    809809{
    810810    int *floyd_steinberg, *fs_r, *fs_g, *fs_b;
     811    uint32_t savedattr;
    811812    int fs_length;
    812813    int x1, y1, x2, y2, pitch, deltax, deltay;
     
    815816    if(!d || !pixels)
    816817        return 0;
     818
     819    savedattr = cucul_get_attr(cv, -1, -1);
    817820
    818821    x1 = x; x2 = x + w - 1;
     
    10371040        cucul_put_char(cv, x, y, outch);
    10381041
    1039        d->increment_dither();
     1042        d->increment_dither();
    10401043    }
    10411044        /* end loop */
     
    10431046
    10441047    free(floyd_steinberg);
     1048
     1049    cucul_set_attr(cv, savedattr);
    10451050
    10461051    return 0;
Note: See TracChangeset for help on using the changeset viewer.