Ignore:
Timestamp:
May 19, 2009, 10:42:12 PM (12 years ago)
Author:
Sam Hocevar
Message:

Fix dirty rectangle handling in the X11 and SLang drivers.

File:
1 edited

Legend:

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

    r3470 r3480  
    143143            dp->drv.p->max_char = 0x7f;
    144144
    145         font_max_char = 
     145        font_max_char =
    146146            (dp->drv.p->font_struct->max_byte1 << 8)
    147147             | dp->drv.p->font_struct->max_char_or_byte2;
     
    154154    /* Reset the default X11 error handler */
    155155    XSetErrorHandler(old_error_handler);
    156    
     156
    157157    dp->drv.p->font_width = 0;
    158158    if(dp->drv.p->font_struct->per_char
     
    332332            int yoff = (y + 1) * dp->drv.p->font_height
    333333                                        - dp->drv.p->font_offset;
    334             uint32_t const *chars = cvchars + y * width;
    335             uint32_t const *attrs = cvattrs + y * width;
     334            uint32_t const *chars = cvchars + xmin + y * width;
     335            uint32_t const *attrs = cvattrs + xmin + y * width;
    336336
    337337            for(x = xmin; x <= xmax; x++, chars++, attrs++)
Note: See TracChangeset for help on using the changeset viewer.