Ignore:
Timestamp:
Mar 7, 2006, 10:17:35 AM (15 years ago)
Author:
Sam Hocevar
Message:
  • Polished the driver split a bit (still no events, except resize events), properly credited authors and documented a few things.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/graphics.c

    r539 r540  
    2020#include "config.h"
    2121
    22 #if defined(HAVE_INTTYPES_H) || defined(_DOXYGEN_SKIP_ME)
    23 #   include <inttypes.h>
    24 #else
    25 typedef unsigned int uint32_t;
    26 typedef unsigned char uint8_t;
    27 #endif
    28 
    2922#include <stdio.h> /* BUFSIZ */
    3023#include <string.h>
     
    4437 */
    4538static void caca_handle_resize(caca_t *kk);
    46 
    47 #if !defined(_DOXYGEN_SKIP_ME)
    48 int _caca_init_graphics(caca_t *kk)
    49 {
    50     int ret = kk->driver.init_graphics(kk);
    51 
    52     if(!ret)
    53         return ret;
    54 
    55     kk->delay = 0;
    56     kk->rendertime = 0;
    57 
    58     return 0;
    59 }
    60 
    61 int _caca_end_graphics(caca_t *kk)
    62 {
    63     return kk->driver.end_graphics(kk);
    64 }
    65 #endif /* _DOXYGEN_SKIP_ME */
    6639
    6740/** \brief Set the window title.
     
    192165    unsigned int new_width, new_height;
    193166
    194     new_width = kk->qq->width;
    195     new_height = kk->qq->height;
    196 
    197     kk->driver.handle_resize(kk);
     167    kk->driver.handle_resize(kk, &new_width, &new_height);
    198168
    199169    /* Tell libcucul we changed size */
Note: See TracChangeset for help on using the changeset viewer.