forked from Lephenixnoir/gint
Lephe
61da7debc8
t6k11: use the gint array for variant detection r61524: use true triple buffering by default display: define DWIDTH and DHEIGHT display: add C_RGB(r,g,b) (0 ≤ r,g,b ≤ 31) [fxcg50]
16 lines
305 B
C
16 lines
305 B
C
#include <gint/display.h>
|
|
#include <gint/std/stdio.h>
|
|
|
|
/* dprint(): Display a formatted string */
|
|
void dprint(int x, int y, int fg, int bg, char const *format, ...)
|
|
{
|
|
char str[512];
|
|
va_list args;
|
|
|
|
va_start(args, format);
|
|
vsnprintf(str, 512, format, args);
|
|
va_end(args);
|
|
|
|
dtext(x, y, str, fg, bg);
|
|
}
|