Ignore:
Timestamp:
Dec 18, 2009, 10:50:37 PM (10 years ago)
Author:
Sam Hocevar
Message:

Fix an alignment issue in caca_get_canvas_chars() and caca_get_canvas_attrs().
Fixes #41.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/driver/slang.c

    r4082 r4146  
    245245        caca_get_dirty_rect(dp->cv, i, &dx, &dy, &dw, &dh);
    246246
    247         cvchars = (uint32_t const *)caca_get_canvas_chars(dp->cv)
    248                     + dx + dy * dp->cv->width;
    249         cvattrs = (uint32_t const *)caca_get_canvas_attrs(dp->cv)
    250                     + dx + dy * dp->cv->width;
     247        cvchars = caca_get_canvas_chars(dp->cv) + dx + dy * dp->cv->width;
     248        cvattrs = caca_get_canvas_attrs(dp->cv) + dx + dy * dp->cv->width;
    251249
    252250        for(y = dy; y < dy + dh; y++)
Note: See TracChangeset for help on using the changeset viewer.