GLPT icon indicating copy to clipboard operation
GLPT copied to clipboard

Window too small on Windows 10

Open genericptr opened this issue 5 years ago • 3 comments

I'm trying to test using Windows 10 emulation on my Mac (VirtualBox) and when I run a program the window is minimized to a tiny size but looks ok if I expand to fit the screen. What's wrong?

Screen Shot 2019-12-28 at 2 57 04 PM

genericptr avatar Dec 28 '19 22:12 genericptr

Can you please post some code? A minimal working example would be great. I have access now to Windows 10 so I can test.

daar avatar Aug 21 '20 08:08 daar

This was the simple example program which was included. Does it not do this on your Windows 10?

genericptr avatar Aug 23 '20 02:08 genericptr

I can reproduce the error. You can fix it bu setting to 0 both x and y position of the window.

So this line: window := GLPT_CreateWindow(GLPT_WINDOW_POS_CENTER, GLPT_WINDOW_POS_CENTER, width, height, 'Simple example', GLPT_GetDefaultContext);

Should be: window := GLPT_CreateWindow(0, 0, width, height, 'Simple example', GLPT_GetDefaultContext);

mtricoli avatar May 24 '21 22:05 mtricoli