#include <stdlib.h>
#include <string.h>
#include "drawtext.h"
-#include "drawtext_impl.h"
+#include "dtximpl.h"
static const char *drawchar(const char *str, float *xpos, float *ypos, int *should_flush);
static void flush(void);
for(j=0; j<xsz; j++) {
int val = src[j];
if(val > threshold) {
- *dest++ = col[0];
- *dest++ = col[1];
*dest++ = col[2];
+ *dest++ = col[1];
+ *dest++ = col[0];
*dest++ = col[3];
} else {
dest += 4;