Ignore:
Timestamp:
May 14, 2009, 2:18:37 AM (11 years ago)
Author:
Sam Hocevar
Message:

Fix a few dirty rectangle bugs found with the unit tests. Let that be a
lesson to you: unit tests are good.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/string.c

    r3448 r3450  
    171171         * replace its right part with a space. */
    172172        if(x + 1 != (int)cv->width && curchar[1] == CACA_MAGIC_FULLWIDTH)
     173        {
    173174            curchar[1] = ' ';
    174     }
    175 
    176     caca_add_dirty_rectangle(cv, xmin, xmax, y, y);
     175            xmax++;
     176        }
     177    }
     178
     179    caca_add_dirty_rectangle(cv, xmin, y, xmax, y);
    177180
    178181    curchar[0] = ch;
Note: See TracChangeset for help on using the changeset viewer.