Ignore:
Timestamp:
Oct 18, 2008, 11:47:35 PM (12 years ago)
Author:
Sam Hocevar
Message:

Port neercs to the unified libcaca 0.99.beta15 API.

File:
1 edited

Legend:

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

    r2495 r2995  
    1515
    1616#include <stdio.h>
    17 #include <cucul.h>
     17#include <caca.h>
    1818#include <caca.h>
    1919#include <stdlib.h>
     
    2424void resize_screen(struct screen *s, int w, int h)
    2525{
    26     cucul_canvas_t *old, *new;
     26    caca_canvas_t *old, *new;
    2727
    2828    if(w==s->w && h==s->h) return;
     
    3232    s->h = h;
    3333
    34     /* cucul_set_canvas_boundaries() is bugged as hell,
     34    /* caca_set_canvas_boundaries() is bugged as hell,
    3535     * so let's resize it by hands */
    3636    old = s->cv;
    37     new = cucul_create_canvas(w, h);
    38     cucul_blit(new, 0, 0, old, NULL);
     37    new = caca_create_canvas(w, h);
     38    caca_blit(new, 0, 0, old, NULL);
    3939    s->cv = new;
    40     cucul_free_canvas(old);
     40    caca_free_canvas(old);
    4141    set_tty_size(s->fd, w, h);
    4242
Note: See TracChangeset for help on using the changeset viewer.