Subversion Repositories SvarDOS

Rev

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

Rev 1423 Rev 1425
Line 215... Line 215...
215
static void ui_basic(const struct file *db, unsigned short slotnum) {
215
static void ui_basic(const struct file *db, unsigned short slotnum) {
216
  const char *s = svarlang_strid(0); /* ESC=MENU */
216
  const char *s = svarlang_strid(0); /* ESC=MENU */
217
  unsigned short helpcol = screenw - strlen(s);
217
  unsigned short helpcol = screenw - strlen(s);
218
  unsigned short maxfnlen = helpcol - 14;
218
  unsigned short maxfnlen = helpcol - 14;
219
 
219
 
220
  /* slot number */
220
  /* slot number (guaranteed to be 0-9) */
221
  {
221
  {
222
    char slot[4] = "#00";
222
    char slot[4] = "#00";
223
    slotnum++;
223
    if (slotnum == 9) {
224
    slot[1] += (slotnum / 10);
224
      slot[1] = '1';
-
 
225
    } else {
-
 
226
      slotnum++;
225
    slot[2] += (slotnum % 10);
227
      slot[2] += slotnum;
-
 
228
    }
226
    mdr_cout_str(screenh - 1, 0, slot, SCHEME_STBAR2, 3);
229
    mdr_cout_str(screenh - 1, 0, slot, SCHEME_STBAR2, 3);
227
  }
230
  }
228
 
231
 
229
  /* fill rest of status bar with background */
232
  /* fill rest of status bar with background */
230
  mdr_cout_char_rep(screenh - 1, 3, ' ', SCHEME_STBAR1, screenw - 1);
233
  mdr_cout_char_rep(screenh - 1, 3, ' ', SCHEME_STBAR1, helpcol - 3);
231
 
234
 
232
  /* filename and modflag */
235
  /* filename and modflag */
233
  {
236
  {
234
    const char *fn;
237
    const char *fn;
235
    unsigned short x;
238
    unsigned short x;