LWJGL Forum

Programming => General Java Game Development => Topic started by: GenuineSounds on May 24, 2012, 09:40:40

Title: [Solved] Problem with re-sizing the screen to fullscreen
Post by: GenuineSounds on May 24, 2012, 09:40:40
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 (http://pastebin.com/j48ntENg)

Any help would be great.
Title: Re: Problem with re-sizing the screen to fullscreen
Post by: 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);
Title: Re: Problem with re-sizing the screen to fullscreen
Post by: GenuineSounds on May 24, 2012, 21:48:24
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.