From f01aec6d899defd32bc3bbf3ec44aaa6746355a2 Mon Sep 17 00:00:00 2001 From: Stephane Marchesin Date: Tue, 27 Apr 2010 23:59:34 -0700 Subject: Fix render update --- render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/render.c b/render.c index 4bcd2e1..dada595 100644 --- a/render.c +++ b/render.c @@ -107,7 +107,7 @@ void render_update(xenon_rect r) { for(int j = r.y ; j < r.y + r.h ; j++) { - libGL.glRasterPos2i(r.x, r.h - j); + libGL.glRasterPos2i(r.x, r.h - j - 1); libGL.glDrawPixels(r.w, 1, GL_RGBA, GL_UNSIGNED_BYTE, pixels + (r.x + j * screen_rect.w) * 4 ); } } -- cgit v1.2.3