Changeset 540 for libcaca/trunk/caca/driver_conio.c
- Timestamp:
- Mar 7, 2006, 10:17:35 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/caca/driver_conio.c
r539 r540 10 10 */ 11 11 12 /** \file graphics.c12 /** \file driver_conio.c 13 13 * \version \$Id$ 14 14 * \author Sam Hocevar <sam@zoy.org> 15 * \brief Character drawing15 * \brief DOS/conio.h driver 16 16 * 17 * This file contains character and string drawing functions.17 * This file contains the libcaca DOS/conio.h input and output driver 18 18 */ 19 19 20 20 #include "config.h" 21 22 #if defined(HAVE_INTTYPES_H) || defined(_DOXYGEN_SKIP_ME)23 # include <inttypes.h>24 #else25 typedef unsigned int uint32_t;26 typedef unsigned char uint8_t;27 #endif28 21 29 22 #if defined(USE_CONIO) … … 51 44 #include "cucul_internals.h" 52 45 53 #if !defined(_DOXYGEN_SKIP_ME) 54 int conio_init_graphics(caca_t *kk) 46 static int conio_init_graphics(caca_t *kk) 55 47 { 56 48 _wscroll = 0; … … 73 65 } 74 66 75 int conio_end_graphics(caca_t *kk)67 static int conio_end_graphics(caca_t *kk) 76 68 { 77 69 _wscroll = 1; … … 86 78 return 0; 87 79 } 88 #endif /* _DOXYGEN_SKIP_ME */89 80 90 int conio_set_window_title(caca_t *kk, char const *title)81 static int conio_set_window_title(caca_t *kk, char const *title) 91 82 { 92 83 return 0; 93 84 } 94 85 95 unsigned int conio_get_window_width(caca_t *kk)86 static unsigned int conio_get_window_width(caca_t *kk) 96 87 { 97 88 /* Fallback to a 6x10 font */ … … 99 90 } 100 91 101 unsigned int conio_get_window_height(caca_t *kk)92 static unsigned int conio_get_window_height(caca_t *kk) 102 93 { 103 94 /* Fallback to a 6x10 font */ … … 105 96 } 106 97 107 void conio_display(caca_t *kk)98 static void conio_display(caca_t *kk) 108 99 { 109 100 int n; … … 123 114 } 124 115 125 void conio_handle_resize(caca_t *kk) 116 static void conio_handle_resize(caca_t *kk, unsigned int *new_width, 117 unsigned int *new_height) 126 118 { 127 return; 119 *new_width = kk->qq->width; 120 *new_height = kk->qq->height; 128 121 } 129 122
Note: See TracChangeset
for help on using the changeset viewer.