Ignore:
Timestamp:
Jun 15, 2008, 5:13:41 PM (13 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Put pty and prevpty in screen_list structure
File:
1 edited

Legend:

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

    r2404 r2421  
    2525
    2626
    27 void draw_thumbnails(cucul_canvas_t *cv, struct screen_list *screen_list, int pty)
     27void draw_thumbnails(cucul_canvas_t *cv, struct screen_list *screen_list)
    2828{
    2929                char const * const *fonts;
     
    6666                        cucul_set_color_ansi(cv, CUCUL_WHITE, CUCUL_BLUE);
    6767
    68                         if(pty == i)
     68                        if(screen_list->pty == i)
    6969                            cucul_draw_cp437_box(cv,20 * i,
    7070                                                 cucul_get_canvas_height(cv) - 6, 19, 6);
     
    8282
    8383/* FIXME, make this stuff more configurable */
    84 void draw_status(cucul_canvas_t *cv, struct screen_list *screen_list, int pty)
     84void draw_status(cucul_canvas_t *cv, struct screen_list *screen_list)
    8585{
    8686    int x = 0, y = cucul_get_canvas_height(cv) - 1;
     
    116116    {
    117117        char text[256];
    118         sprintf(text, "%d/%d", pty+1, screen_list->count);
     118        sprintf(text, "%d/%d", screen_list->pty+1, screen_list->count);
    119119        x++;
    120120        cucul_set_color_ansi(cv, CUCUL_LIGHTBLUE, CUCUL_BLUE);
     
    169169
    170170
    171 void draw_help(cucul_canvas_t *cv, struct screen_list *screen_list, int pty)
     171void draw_help(cucul_canvas_t *cv, struct screen_list *screen_list)
    172172{
    173173    int w = 65, h = 20;
     
    197197    cucul_printf(cv, x, y++, "");
    198198    cucul_printf(cv, x, y++, "All shortcuts are in format 'ctrl-a-X' where X is :");
    199 
    200199    cucul_printf(cv, x, y++, "n:\t Next window");
    201200    cucul_printf(cv, x, y++, "p:\t Previous window");
Note: See TracChangeset for help on using the changeset viewer.