Hello Guest

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

  • 2 Replies
  • 6787 Views
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.
« Last Edit: May 24, 2012, 22:19:31 by GenuineSounds »

Re: Problem with re-sizing the screen to fullscreen
« Reply #1 on: May 24, 2012, 12:47:09 »
When resizing the window you need to tell OpenGL to use the new size:
Code: [Select]
        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

Re: Problem with re-sizing the screen to fullscreen
« Reply #2 on: May 24, 2012, 21:48:24 »
When resizing the window you need to tell OpenGL to use the new size:
Code: [Select]
        glViewport(x, y, width, height);

I see, thank you so much.