Corrected error in pixel interpolating.

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
Nic0Nic0Nii 3 years ago
parent 23fdde1a2f
commit cc3a6baf15
  1. 2
      src/sig/Panel.java

@ -410,7 +410,7 @@ public class Panel extends JPanel implements Runnable {
p[x+y*width]=p[x+(y+1)*width];
}else
if (x+1<SigRenderer.SCREEN_WIDTH&&SigRenderer.depthBuffer[x+1+y*width]!=0) {
p[x+y*width]=p[x+(y+1)*width];
p[x+y*width]=p[x+1+y*width];
}else
if (x-1>=0&&SigRenderer.depthBuffer[x-1+y*width]!=0) {
p[x+y*width]=p[x-1+y*width];

Loading…
Cancel
Save