Ignore:
Timestamp:
Mar 9, 2006, 1:41:02 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Pure VGA output driver.
Location:
libcaca/trunk/caca
Files:
1 added
2 edited

Legend:

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

    r554 r565  
    2222#include "config.h"
    2323
    24 #include <stdlib.h>
    25 #include <string.h>
     24#if !defined(__KERNEL__)
     25#   include <stdlib.h>
     26#   include <string.h>
     27#endif
    2628
    2729#include "cucul.h"
     
    152154        else
    153155#endif
     156#if defined(USE_VGA)
     157        if(!strcasecmp(var, "vga"))
     158            vga_init_driver(kk);
     159        else
     160#endif
    154161            return -1;
    155162
     
    164171#if defined(USE_CONIO)
    165172    conio_init_driver(kk);
     173    return 0;
     174#endif
     175#if defined(USE_VGA)
     176    vga_init_driver(kk);
    166177    return 0;
    167178#endif
  • libcaca/trunk/caca/caca_internals.h

    r554 r565  
    2121#define __CACA_INTERNALS_H__
    2222
    23 #if defined(HAVE_INTTYPES_H) || defined(_DOXYGEN_SKIP_ME)
     23#if defined(HAVE_INTTYPES_H) && !defined(__KERNEL__)
    2424#   include <inttypes.h>
    25 #elif !defined(CUSTOM_INTTYPES)
     25#elif !defined(CUSTOM_INTTYPES) && !defined(_DOXYGEN_SKIP_ME)
    2626#   define CUSTOM_INTTYPES
    2727typedef unsigned char uint8_t;
     
    5858    CACA_DRIVER_NETWORK = 7,
    5959#endif
     60#if defined(USE_VGA)
     61    CACA_DRIVER_VGA = 8,
     62#endif
    6063    CACA_DRIVER_NONE = 0
    6164};
     
    8285#if defined(USE_NETWORK)
    8386void network_init_driver(caca_t *);
     87#endif
     88#if defined(USE_VGA)
     89void vga_init_driver(caca_t *);
    8490#endif
    8591/* Timer structure */
Note: See TracChangeset for help on using the changeset viewer.