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
  • Loading branch information
jayathirthrao committed Nov 21, 2022
1 parent 45d1807 commit 3c09498
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
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 3c09498

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