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/driver_conio.c

    r539 r540  
    1010 */
    1111
    12 /** \file graphics.c
     12/** \file driver_conio.c
    1313 *  \version \$Id$
    1414 *  \author Sam Hocevar <sam@zoy.org>
    15  *  \brief Character drawing
     15 *  \brief DOS/conio.h driver
    1616 *
    17  *  This file contains character and string drawing functions.
     17 *  This file contains the libcaca DOS/conio.h input and output driver
    1818 */
    1919
    2020#include "config.h"
    21 
    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
    2821
    2922#if defined(USE_CONIO)
     
    5144#include "cucul_internals.h"
    5245
    53 #if !defined(_DOXYGEN_SKIP_ME)
    54 int conio_init_graphics(caca_t *kk)
     46static int conio_init_graphics(caca_t *kk)
    5547{
    5648    _wscroll = 0;
     
    7365}
    7466
    75 int conio_end_graphics(caca_t *kk)
     67static int conio_end_graphics(caca_t *kk)
    7668{
    7769    _wscroll = 1;
     
    8678    return 0;
    8779}
    88 #endif /* _DOXYGEN_SKIP_ME */
    8980
    90 int conio_set_window_title(caca_t *kk, char const *title)
     81static int conio_set_window_title(caca_t *kk, char const *title)
    9182{
    9283    return 0;
    9384}
    9485
    95 unsigned int conio_get_window_width(caca_t *kk)
     86static unsigned int conio_get_window_width(caca_t *kk)
    9687{
    9788    /* Fallback to a 6x10 font */
     
    9990}
    10091
    101 unsigned int conio_get_window_height(caca_t *kk)
     92static unsigned int conio_get_window_height(caca_t *kk)
    10293{
    10394    /* Fallback to a 6x10 font */
     
    10596}
    10697
    107 void conio_display(caca_t *kk)
     98static void conio_display(caca_t *kk)
    10899{
    109100    int n;
     
    123114}
    124115
    125 void conio_handle_resize(caca_t *kk)
     116static void conio_handle_resize(caca_t *kk, unsigned int *new_width,
     117                                            unsigned int *new_height)
    126118{
    127     return;
     119    *new_width = kk->qq->width;
     120    *new_height = kk->qq->height;
    128121}
    129122
Note: See TracChangeset for help on using the changeset viewer.