Skip to content

Commit

Permalink
8297241: Update sun/java2d/DirectX/OnScreenRenderingResizeTest/OnScre…
Browse files Browse the repository at this point in the history
…enRenderingResizeTest.java

8297153: sun/java2d/DirectX/OnScreenRenderingResizeTest/OnScreenRenderingResizeTest.java fails again

Reviewed-by: serb
(cherry picked from commit 3c0949824e06f2b3d44f1bde9d2292a7627b0197)
  • Loading branch information
jayathirthrao authored and Rudometov committed Nov 22, 2022
1 parent c488e04 commit 84cf42b
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -63,7 +63,10 @@ public class OnScreenRenderingResizeTest {
private static Frame frame;

private static void createAndShowGUI() {
frame = new Frame();
frame = new Frame() {
public void paint(Graphics g) {}
public void update(Graphics g) {}
};
frame.setBackground(bgColor);
frame.setUndecorated(true);
frame.setAlwaysOnTop(true);
Expand Down Expand Up @@ -148,6 +151,9 @@ public void run() {
incH = -incH;
}
frame.setSize(w, h);
if (robot != null) {
robot.waitForIdle();
}
cnt = 0;
}
// try to put the device into non-default state, for example,
Expand Down

0 comments on commit 84cf42b

Please sign in to comment.