Permalink
Browse files

Fix #438

I didn't actually notice any difference with this change
  • Loading branch information...
jacob1 committed Jun 12, 2017
1 parent 1718fe9 commit 0ea5c1d0e07f71020b94c439ba85ee50d894f5e3
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/graphics/Renderer.cpp
@@ -1041,7 +1041,7 @@ void Renderer::render_gravlensing(pixel * source)
gy = (int)(ny-sim->gravy[co]*0.875f+0.5f);
bx = (int)(nx-sim->gravx[co]+0.5f);
by = (int)(ny-sim->gravy[co]+0.5f);
if(rx > 0 && rx < XRES && ry > 0 && ry < YRES && gx > 0 && gx < XRES && gy > 0 && gy < YRES && bx > 0 && bx < XRES && by > 0 && by < YRES)
if(rx >= 0 && rx < XRES && ry >= 0 && ry < YRES && gx >= 0 && gx < XRES && gy >= 0 && gy < YRES && bx >= 0 && bx < XRES && by >= 0 && by < YRES)
{
t = dst[ny*(VIDXRES)+nx];
r = PIXR(src[ry*(VIDXRES)+rx]) + PIXR(t);

0 comments on commit 0ea5c1d

Please sign in to comment.