Changeset 3508


Ignore:
Timestamp:
May 22, 2009, 1:23:59 PM (11 years ago)
Author:
Pascal Terjan
Message:

Don't do twice width/height/window props/canvas initialization

File:
1 edited

Legend:

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

    r3504 r3508  
    272272                screen_list->cv = caca_create_canvas(atoi(buf+7), atoi(buf+18));
    273273                screen_list->delay = atoi(buf+29);
    274                 screen_list->width  = caca_get_canvas_width(screen_list->cv);
    275                 screen_list->height = caca_get_canvas_height(screen_list->cv) - ((screen_list->mini*6) + (screen_list->status));
    276                 update_windows_props(screen_list);
    277                 caca_clear_canvas(screen_list->cv);
     274                screen_list->changed = 1;
    278275                refresh = 1;
    279276            }
     
    292289                /* FIXME check the length before calling atoi */
    293290                screen_list->cv = caca_create_canvas(atoi(buf+7), atoi(buf+18));
    294                 screen_list->width  = caca_get_canvas_width(screen_list->cv);
    295                 screen_list->height = caca_get_canvas_height(screen_list->cv) - ((screen_list->mini*6) + (screen_list->status));
    296291                screen_list->changed = 1;
    297                 update_windows_props(screen_list);
    298                 caca_clear_canvas(screen_list->cv);
    299292                refresh = 1;
    300293            }
Note: See TracChangeset for help on using the changeset viewer.