Changeset 3506 for neercs/trunk


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

Don't overlap screens/thumbnails/status bar

Location:
neercs/trunk/src
Files:
2 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
  • neercs/trunk/src/wm.c

    r3503 r3506  
    7676    int i;
    7777    int w = (screen_list->width / screen_list->count) - 1;
    78     int h = (screen_list->height) - 2;
     78    int h = screen_list->height - 3;
    7979
    8080    for(i = 0; i < screen_list->count; i++)
     
    9999    int i;
    100100    int w = screen_list->width - 2;
    101     int h = (screen_list->height / screen_list->count);
     101    int h = (screen_list->height-1) / screen_list->count;
    102102
    103103    for(i = 0; i < screen_list->count; i++)
     
    113113            resize_screen(screen_list->screen[i],
    114114                          w,
    115                           screen_list->height - i*h - 2);
     115                          screen_list->height - i*h - 3);
    116116        }
    117117    }
     
    123123    int i;
    124124    int w = screen_list->width - 2;
    125     int h = screen_list->height - 2;
     125    int h = screen_list->height - 3;
    126126
    127127    for(i = 0; i < screen_list->count; i++)
     
    142142    int i;
    143143    int w = (screen_list->width  - screen_list->count*3) + 1;
    144     int h = (screen_list->height - screen_list->count) - 1;
     144    int h = (screen_list->height - screen_list->count) - 2;
    145145    int x = 1;
    146146    int y = screen_list->count;
Note: See TracChangeset for help on using the changeset viewer.