Description
Graphics drawPolyline & drawPolygon methods work incorretly in XORMode
Simple reproducer:
import java.io.*;
import java.awt.*;
import java.awt.image.*;
import javax.swing.*;
public class DrawPolylineTest extends JFrame {
public static void main(String[] args){
final DrawPolylineTest test = new DrawPolylineTest();
test.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
test.setSize(200, 200);
test.add(new Panel(){
public void paint(Graphics g)
});
test.setVisible(true);
}
}