Changeset 3978 for neercs


Ignore:
Timestamp:
Nov 20, 2009, 4:04:19 PM (11 years ago)
Author:
Pascal Terjan
Message:
  • Handle top/bottom in RI, and add some -1/+1 when needed
File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/src/term.c

    r3977 r3978  
    222222            /* FIXME : not sure about the meaning of 'go up one line' and 'if
    223223               necessary' words. Implemented as a scroller only. */
    224             for (j = height; j > 0; j--)
     224            for (j = bottom - 1; j > top; j--)
    225225            {
    226226                for (k = 0; k < width; k++)
     
    232232                }
    233233            }
    234             caca_draw_line(sc->cv, 0, 0, width, 0, ' ');
     234            caca_draw_line(sc->cv, 0, top - 1, width - 1, top - 1, ' ');
    235235            skip += 1;
    236236        }
Note: See TracChangeset for help on using the changeset viewer.