Details
-
Sub-task
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
None
-
None
-
None
-
Win32
-
Novice
Description
A common trick in XORMode is to draw something, in XORMode, a second time to erase what was drawn the first time. But this does not work in Harmony to me. See below reproducer:
import java.awt.*;
import javax.swing.*;
public class DrawStringTest extends JFrame {
int xPosition = 100;
int yPosition = 100;
public static void main(String[] args)
public DrawStringTest(){}
public void paint(Graphics g){
super.paint(g);
System.out.println("drawString at " + xPosition + ", " + yPosition);
g.drawString("XOR mode drawString test", xPosition, yPosition);
g.setXORMode(getBackground());
for (int i = 0; i < 5; i ++)
g.setPaintMode();
}
}