Ignore:
Timestamp:
May 14, 2009, 6:16:41 PM (12 years ago)
Author:
Pascal Terjan
Message:
  • Adapt refresh rate dynamically and inform the server about it
File:
1 edited

Legend:

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

    r3456 r3457  
    222222        int quit = 0;
    223223        ssize_t n;
    224         char buf[4097];
     224        char buf[128];
    225225
    226226        /* Read program output */
     
    240240                caca_free_canvas(screen_list->cv);
    241241                screen_list->cv = caca_create_canvas(atoi(buf+7), atoi(buf+18));
     242                screen_list->delay = atoi(buf+29);
    242243                screen_list->width  = caca_get_canvas_width(screen_list->cv);
    243244                screen_list->height = caca_get_canvas_height(screen_list->cv) - ((screen_list->mini*6) + (screen_list->status));
     
    249250            {
    250251                quit = 1;
     252            }
     253            else if(!strncmp("DELAY ", buf, 6))
     254            {
     255                screen_list->delay = atoi(buf+6);
    251256            }
    252257            else if(!strncmp("RESIZE ", buf, 7))
Note: See TracChangeset for help on using the changeset viewer.