Changeset 1813 for libcaca


Ignore:
Timestamp:
Aug 2, 2007, 7:33:10 PM (15 years ago)
Author:
Sam Hocevar
Message:
  • Reset cursor position after a resize. Not sure it’s what I want.
File:
1 edited

Legend:

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

    r1462 r1813  
    107107 *  the bottom of the canvas are filled with spaces.
    108108 *
     109 *  If as a result of the resize the cursor coordinates fall outside the
     110 *  new canvas boundaries, they are readjusted. For instance, if the
     111 *  current X cursor coordinate is 11 and the requested width is 10, the
     112 *  new X cursor coordinate will be 10.
     113 *
    109114 *  It is an error to try to resize the canvas if an output driver has
    110115 *  been attached to the canvas using caca_create_display(). You need to
    111116 *  remove the output driver using caca_free_display() before you can change
    112  *  the  canvas size again. However, the caca output driver can cause a
     117 *  the canvas size again. However, the caca output driver can cause a
    113118 *  canvas resize through user interaction. See the caca_event() documentation
    114119 *  for more about this.
     
    354359    for(f = 0; f < cv->framecount; f++)
    355360    {
     361        if(cv->frames[f].x > (int)width)
     362            cv->frames[f].x = width;
     363        if(cv->frames[f].y > (int)height)
     364            cv->frames[f].y = height;
     365
    356366        cv->frames[f].width = width;
    357367        cv->frames[f].height = height;
Note: See TracChangeset for help on using the changeset viewer.