Ignore:
Timestamp:
May 22, 2009, 12:47:11 PM (12 years ago)
Author:
Pascal Terjan
Message:

Don't overlap screens/thumbnails/status bar

File:
1 edited

Legend:

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

    r3499 r3506  
    3333    caca_font_t *f;
    3434    uint8_t *buf;
    35     int i;
     35    int i, y = caca_get_canvas_height(screen_list->cv) - 6 - screen_list->status;
    3636    int miniw, minih;
    3737
     
    6666            caca_render_canvas(screen_list->screen[i]->cv, f, buf,
    6767                                miniw, minih, miniw * 4);
    68             caca_dither_bitmap(screen_list->cv, 20 * i,
    69                                 caca_get_canvas_height(screen_list->cv) - 6, 19, 6, d, buf);
     68            caca_dither_bitmap(screen_list->cv, 20 * i, y, 19, 6, d, buf);
    7069            caca_set_color_ansi(screen_list->cv, CACA_WHITE, CACA_BLUE);
    7170
    7271            if(screen_list->pty == i)
    73                 caca_draw_cp437_box(screen_list->cv,20 * i,
    74                                      caca_get_canvas_height(screen_list->cv) - 6, 19, 6);
    75             caca_printf(screen_list->cv, 20 * i,
    76                          caca_get_canvas_height(screen_list->cv) - 6, "(%i)", i+1);
     72                caca_draw_cp437_box(screen_list->cv,20 * i, y, 19, 6);
     73            caca_printf(screen_list->cv, 20 * i, y, "(%i)", i+1);
    7774        }
    7875
Note: See TracChangeset for help on using the changeset viewer.