parent
1718fe9287
commit
0ea5c1d0e0
@ -1041,7 +1041,7 @@ void Renderer::render_gravlensing(pixel * source)
|
|||||||
gy = (int)(ny-sim->gravy[co]*0.875f+0.5f);
|
gy = (int)(ny-sim->gravy[co]*0.875f+0.5f);
|
||||||
bx = (int)(nx-sim->gravx[co]+0.5f);
|
bx = (int)(nx-sim->gravx[co]+0.5f);
|
||||||
by = (int)(ny-sim->gravy[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];
|
t = dst[ny*(VIDXRES)+nx];
|
||||||
r = PIXR(src[ry*(VIDXRES)+rx]) + PIXR(t);
|
r = PIXR(src[ry*(VIDXRES)+rx]) + PIXR(t);
|
||||||
|
Loading…
Reference in New Issue
Block a user