summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephane Marchesin <stephane.marchesin@gmail.com>2010-04-27 23:59:34 -0700
committerStephane Marchesin <stephane.marchesin@gmail.com>2010-04-27 23:59:34 -0700
commitf01aec6d899defd32bc3bbf3ec44aaa6746355a2 (patch)
treec8781720cbe2dd1326a3f55aabc994995af03c79
parent4b3d7d90ad3593e443ff2f71bc1372fcb1da2d24 (diff)
Fix render update
-rw-r--r--render.c2
1 files changed, 1 insertions, 1 deletions
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 );
}
}