GLPT
GLPT copied to clipboard
Window too small on Windows 10
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?
Can you please post some code? A minimal working example would be great. I have access now to Windows 10 so I can test.
This was the simple example program which was included. Does it not do this on your Windows 10?
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);