Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Change window to full screen?


Recommended Posts

How can I implement a change of window to full screen after activating the option in the options menu?

Do I have to force the user to restart the game?
Or can I do it with the program running live?

 

GUI5.thumb.png.ede981fd1ef598a35849f68adf2b50a0.png

Link to post
Share on other sites
1 hour ago, reepblue said:

To be honest, I just request the user to restart. This prevents anything relying on the context to not break when the user changes the window mode. 

image.thumb.png.f448a4c638be0fb186401d67b0ac6e95.png

Link to post
Share on other sites
2 minutes ago, Josh said:

Same as any object in Leadwerks, Release():
https://www.leadwerks.com/learn?page=API-Reference_Object_Release

You might try Window::SetShape() first, it might allow resizing a fullscreen window. Just make sure the new size is one of the support graphics resolutions for your monitor.

Thank you very much, always something to learn with Leadwerks. :)

Link to post
Share on other sites
2 hours ago, Josh said:

Same as any object in Leadwerks, Release():
https://www.leadwerks.com/learn?page=API-Reference_Object_Release

You might try Window::SetShape() first, it might allow resizing a fullscreen window. Just make sure the new size is one of the support graphics resolutions for your monitor.

When I delete the window, is the context of the window and the world it contains deleted?

Link to post
Share on other sites
On 9/14/2021 at 1:42 PM, Josh said:

The context is deleted, but the world is not.

The GUI is also deleted, the thing is that in the resolution change it seems that the GUI is broken, it does not draw the menu correctly in the coordinates, I think I have to delete it and create it again.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...