Changeset 1330 for libcaca/trunk/caca
 Timestamp:
 Nov 11, 2006, 9:11:26 AM (13 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

libcaca/trunk/caca/caca0.h
r1269 r1330 47 47 extern unsigned char __caca0_fg; 48 48 extern unsigned char __caca0_bg; 49 extern char __caca0_utf8[];50 49 51 50 /* These enums and macros changed names or values */ … … 142 141 143 142 #define caca_draw_line(x, y, z, t, c) \ 144 (__caca0_utf8[0] = c, \ 145 cucul_draw_line(__caca0_cv, x, y, z, t, __caca0_utf8)) 143 cucul_draw_line(__caca0_cv, x, y, z, t, c) 146 144 #define caca_draw_polyline(x, y, z, c) \ 147 (__caca0_utf8[0] = c, \ 148 cucul_draw_polyline(__caca0_cv, x, y, z, __caca0_utf8)) 145 cucul_draw_polyline(__caca0_cv, x, y, z, c) 149 146 #define caca_draw_thin_line(x, y, z, t) \ 150 147 cucul_draw_thin_line(__caca0_cv, x, y, z, t) … … 152 149 cucul_draw_thin_polyline(__caca0_cv, x, y, z) 153 150 #define caca_draw_circle(x, y, z, c) \ 154 (__caca0_utf8[0] = c, cucul_draw_circle(__caca0_cv, x, y, z, __caca0_utf8))151 cucul_draw_circle(__caca0_cv, x, y, z, c) 155 152 #define caca_draw_ellipse(x, y, z, t, c) \ 156 (__caca0_utf8[0] = c, \ 157 cucul_draw_ellipse(__caca0_cv, x, y, z, t, __caca0_utf8)) 153 cucul_draw_ellipse(__caca0_cv, x, y, z, t, c) 158 154 #define caca_draw_thin_ellipse(x, y, z, t) \ 159 155 cucul_draw_thin_ellipse(__caca0_cv, x, y, z, t) 160 156 #define caca_fill_ellipse(x, y, z, t, c) \ 161 (__caca0_utf8[0] = c, \ 162 cucul_fill_ellipse(__caca0_cv, x, y, z, t, __caca0_utf8)) 157 cucul_fill_ellipse(__caca0_cv, x, y, z, t, c) 163 158 #define caca_draw_box(x, y, z, t, c) \ 164 (__caca0_utf8[0] = c, cucul_draw_box(__caca0_cv, x, y, z, t, __caca0_utf8))159 cucul_draw_box(__caca0_cv, x, y, z, t, c) 165 160 #define caca_draw_thin_box(x, y, z, t) \ 166 161 cucul_draw_thin_box(__caca0_cv, x, y, z, t) 167 162 #define caca_fill_box(x, y, z, t, c) \ 168 (__caca0_utf8[0] = c, cucul_fill_box(__caca0_cv, x, y, z, t, __caca0_utf8))163 cucul_fill_box(__caca0_cv, x, y, z, t, c) 169 164 #define caca_draw_triangle(x, y, z, t, u, v, c) \ 170 (__caca0_utf8[0] = c, \ 171 cucul_draw_triangle(__caca0_cv, x, y, z, t, u, v, __caca0_utf8)) 165 cucul_draw_triangle(__caca0_cv, x, y, z, t, u, v, c) 172 166 #define caca_draw_thin_triangle(x, y, z, t, u, v) \ 173 167 cucul_draw_thin_triangle(__caca0_cv, x, y, z, t, u, v) 174 168 #define caca_fill_triangle(x, y, z, t, u, v, c) \ 175 (__caca0_utf8[0] = c, \ 176 cucul_fill_triangle(__caca0_cv, x, y, z, t, u, v, __caca0_utf8)) 169 cucul_fill_triangle(__caca0_cv, x, y, z, t, u, v, c) 177 170 178 171 #define caca_rand(a, b) cucul_rand(a, (b)+1)
Note: See TracChangeset
for help on using the changeset viewer.