Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8297241: Update sun/java2d/DirectX/OnScreenRenderingResizeTest/OnScre…
…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 10e1627 commit 22df666
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 22df666

@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.