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

Backport-of: 3c0949824e06f2b3d44f1bde9d2292a7627b0197
  • Loading branch information
Victor Rudometov authored and Paul Hohensee committed Nov 24, 2022
1 parent c488e04 commit 382ac6b
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

1 comment on commit 382ac6b

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.