[Solved] Problem with re-sizing the screen to fullscreen

Started by GenuineSounds, May 24, 2012, 09:40:40

Previous topic - Next topic

GenuineSounds

Noob question here:
I'm having a difficult time fixing something:

I am setting a Lwjgl window to full-screen and also changing the resolution to max (or an arbitrary size) and in the full screen context the amount rendered is only the original size of the window before switching to full-screen.

Code here: http://pastebin.com/j48ntENg

Any help would be great.

Fool Running

When resizing the window you need to tell OpenGL to use the new size:
        glViewport(x, y, width, height);
Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option ;D

GenuineSounds

Quote from: Fool Running on May 24, 2012, 12:47:09
When resizing the window you need to tell OpenGL to use the new size:
        glViewport(x, y, width, height);


I see, thank you so much.