Subversion Repositories SvarDOS

Rev

Rev 1667 | Rev 1669 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1667 Rev 1668
Line 197... Line 197...
197
    if (count <= height) { /* no need for a cursor, all fits on one page */
197
    if (count <= height) { /* no need for a cursor, all fits on one page */
198
      i = 255;
198
      i = 255;
199
    } else {
199
    } else {
200
      i = offset * (height - 1) / (count - height);
200
      i = offset * (height - 1) / (count - height);
201
    }
201
    }
202
    mdr_cout_char(0, 0, '0' + (i / 10), COLOR_SELECT);
-
 
203
    mdr_cout_char(0, 1, '0' + (i % 10), COLOR_SELECT);
-
 
204
 
202
 
205
    for (y = ypos; y < (ypos + height); y++) {
203
    for (y = ypos; y < (ypos + height); y++) {
206
      mdr_cout_char(y, xpos-1, 0xB3, COLOR_SELECT); /* left side */
204
      mdr_cout_char(y, xpos-1, 0xB3, COLOR_SELECT); /* left side */
207
      if (y - ypos == i) {
205
      if (y - ypos == i) {
208
        mdr_cout_char(y, xpos+width+2, '=', COLOR_SELECT); /* cursor */
206
        mdr_cout_char(y, xpos+width+2, '=', COLOR_SELECT); /* cursor */