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

    r3624 r4146  
    125125        caca_get_dirty_rect(dp->cv, i, &dx, &dy, &dw, &dh);
    126126
    127         cvchars = (uint32_t const *)caca_get_canvas_chars(dp->cv)
    128                     + dx + dy * dp->cv->width;
    129         cvattrs = (uint32_t const *)caca_get_canvas_attrs(dp->cv)
    130                     + dx + dy * dp->cv->width;
     127        cvchars = caca_get_canvas_chars(dp->cv) + dx + dy * dp->cv->width;
     128        cvattrs = caca_get_canvas_attrs(dp->cv) + dx + dy * dp->cv->width;
    131129
    132130        screen += dy * dp->cv->width + dx;
Note: See TracChangeset for help on using the changeset viewer.