diff options
author | Stephane Marchesin <stephane.marchesin@gmail.com> | 2010-04-27 23:59:34 -0700 |
---|---|---|
committer | Stephane Marchesin <stephane.marchesin@gmail.com> | 2010-04-27 23:59:34 -0700 |
commit | f01aec6d899defd32bc3bbf3ec44aaa6746355a2 (patch) | |
tree | c8781720cbe2dd1326a3f55aabc994995af03c79 | |
parent | 4b3d7d90ad3593e443ff2f71bc1372fcb1da2d24 (diff) |
Fix render update
-rw-r--r-- | render.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 ); } } |