title: Rendering Some Alpha Rectangles is Glitchy on Some Computers
body: <p>I've been working on a game in Java, and recently I decided to try out my game on a netbook just to see how it would run. While I do get a constant 60 FPS, it appears that my lighting rendering decides to freak out a bit. This only happens on the netbook, however, and I'm not sure how I can fix it.</p>
  
  <p>Here's the lighting glitch:</p>
  
  <p><img src="https://i.stack.imgur.com/CX8Ye.png" alt="enter image description here"></p>
  
  <p>As you can see, for some reason there are sometimes vertical and (although not shown) horizontal lines that the alpha rectangles apparently aren't drawing over.</p>
  
  <p>I'm using Graphics to draw on a JFrame, and the block rendering code looks like this:</p>
  
  <pre><code>g.drawImage(sprite, (int)x, (int)y, null);
  g.setColor(new Color(0,0,0,&lt;insert darkness level&gt;));
  g.fillRect((int)x,(int)y,32,32);
  </code></pre>
  
  <p>I don't think there's anything wrong with the code itself, which is why I'm not sure how to fix this. If someone could help, I'd be really grateful. Thank you in advance!</p>