Changeset 2387


Ignore:
Timestamp:
06/14/08 12:06:54 (5 years ago)
Author:
pterjan
Message:
  • Move back title writing after drawing the associated box
File:
1 edited

Legend:

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

    r2385 r2387  
    352352                                         screen_list->screen[i]->w + 2, 
    353353                                         screen_list->screen[i]->h + 2); 
     354                    if(screen_list->screen[i]->title) 
     355                        cucul_printf(cv, 
     356                                     screen_list->screen[i]->x, 
     357                                     screen_list->screen[i]->y - 1, 
     358                                     " %.*s ", 
     359                                     screen_list->screen[i]->w - 3, 
     360                                     screen_list->screen[i]->title); 
    354361                } 
    355362 
     
    376383                                 screen_list->screen[pty]->w + 2, 
    377384                                 screen_list->screen[pty]->h + 2); 
    378  
    379             cucul_set_color_ansi(cv, CUCUL_DEFAULT, CUCUL_BLACK); 
    380             for(i = screen_list->count - 1; i >=0; i--) 
    381             { 
    382                 if(screen_list->screen[i]->title) 
    383                     cucul_printf(cv, 
    384                                  screen_list->screen[i]->x, 
    385                                  screen_list->screen[i]->y - 1, 
    386                                  " %.*s ", 
    387                                      screen_list->screen[i]->w - 3, 
    388                                  screen_list->screen[i]->title); 
    389                  
    390             } 
    391  
     385            if(screen_list->screen[pty]->title) 
     386                cucul_printf(cv, 
     387                             screen_list->screen[pty]->x, 
     388                             screen_list->screen[pty]->y - 1, 
     389                             " %.*s ", 
     390                             screen_list->screen[pty]->w - 3, 
     391                             screen_list->screen[pty]->title);                 
    392392            cucul_gotoxy(cv, 
    393393                         screen_list->screen[pty]->x + 
     
    409409                draw_help(cv, screen_list, pty); 
    410410            } 
    411  
    412411 
    413412            caca_refresh_display(dp); 
Note: See TracChangeset for help on using the changeset viewer.