JDK-8056976 : SunGraphics2D drawLine: To many pixels drawn
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 8u20
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_8
  • CPU: x86
  • Submitted: 2014-08-30
  • Updated: 2014-09-02
  • Resolved: 2014-09-02
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
1.8.0_20

ADDITIONAL OS VERSION INFORMATION :
Windows 8.1 64bit

A DESCRIPTION OF THE PROBLEM :
public class GameWindow extends java.awt.Frame {

    public void paint(Graphics g) { //g is a SunGraphics2D
        //HERE: drawLine paints 3 pixels !!!
        g.drawLine( 10, 10, 11, 10);
    }
}


REPRODUCIBILITY :
This bug can be reproduced always.


Comments
There is precious little information here about the environment but I strongly suspect this is a duplicate ofhttps://bugs.openjdk.java.net/browse/JDK-8049901 : Graphics2D.drawLine sometimes draws lines too long with D3D on Intel HD cards
02-09-2014