Hello Guest

LWJGL's AWTGLCanvas displaying half size

  • 0 Replies
  • 6039 Views
LWJGL's AWTGLCanvas displaying half size
« on: October 30, 2020, 01:56:09 »
Hello everyone,

I'm having this issue on a different machine, where the canvas is being displayed only half the height of the frame canvas area.
So basically if I set the canvas to have 500 x 500, it will only display the 500 x 250 (the bottom half).

this is my code for the frame:

Code: [Select]
frame.setSize(width, height);
frame.setAlwaysOnTop(stayOnTop);
frame.getContentPane().add(canvas, BorderLayout.CENTER);
frame.setUndecorated(false);
frame.pack();
frame.setVisible(true);

this issue only seems to happen on a computer with windows 10, x64

is there any known issue regarding this component?

many thanks in advance,
regards,
Jakes
« Last Edit: October 30, 2020, 12:11:44 by Jakes »