--- old/src/java.desktop/windows/native/libawt/java2d/d3d/D3DVertexCacher.cpp 2016-09-05 13:25:57.768289500 +0300 +++ new/src/java.desktop/windows/native/libawt/java2d/d3d/D3DVertexCacher.cpp 2016-09-05 13:25:57.111289500 +0300 @@ -109,12 +109,13 @@ // Horiz/vertical #define HV_FF1 ( 0.0f) -#define HV_FF2 ( 0.51f) +#define HV_FF2 ( 0.501f) // For the record: value below (or larger) is required for Intel 855, but // breaks Nvidia, ATI and Intel 965, and since the pipeline is disabled on // 855 anyway we'll use 0.51f. //#define HV_FF2 ( 0.5315f) #define HV_FF3 (-0.2f) +#define HV_FF4 ( 0.51f) // single pixel #define SP_FF4 ( 0.3f) @@ -251,10 +252,10 @@ fx2 = fx1; if (y1 > y2) { fy1 = (float)y2+HV_FF3; - fy2 = (float)y1+HV_FF2; + fy2 = (float)y1+HV_FF4; } else { fy1 = (float)y1+HV_FF3; - fy2 = (float)y2+HV_FF2; + fy2 = (float)y2+HV_FF4; } } else { // diagonal @@ -447,9 +448,9 @@ // horiz: bottom left - bottom right ADD_LINE_XYC(fx1+1.0f+HV_FF3, fy2+HV_FF1, fx2+HV_FF2, fy2+HV_FF1,color); // vert : top right - bottom right - ADD_LINE_XYC(fx2+HV_FF1, fy1+HV_FF3, fx2+HV_FF1, fy2-1.0f+HV_FF2,color); + ADD_LINE_XYC(fx2+HV_FF1, fy1+HV_FF3, fx2+HV_FF1, fy2-1.0f+HV_FF4,color); // vert : top left - bottom left - ADD_LINE_XYC(fx1+HV_FF1, fy1+1.0f+HV_FF3, fx1+HV_FF1, fy2+HV_FF2,color); + ADD_LINE_XYC(fx1+HV_FF1, fy1+1.0f+HV_FF3, fx1+HV_FF1, fy2+HV_FF4,color); } return res; }