stop appending repeat keys to the input buffer
[retroray] / libs / drawtext / drawrast.c
index 66543a5..f54c25d 100644 (file)
@@ -19,7 +19,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #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);
@@ -119,9 +119,9 @@ static void blit_thres(unsigned char *dest, unsigned char *src, int xsz, int ysz
                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;