Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [SOLVED] [GUI Plugin] about Nuklear and SetWindowSize() - Virtural Screen

Author
Message
kazuki
5
Years of Service
User Offline
Joined: 8th Feb 2019
Location: Japan
Posted: 3rd Nov 2021 13:54
Hello, MadBit and Guys.

Is it a standard specification of nuklear GUI that nkSysc() does not support fullscreen by SetWindowSize(x, y, 1)?

The author of this post has marked a post as an answer.

Go to answer

MadBit
VIP Member
Gold Codemaster
14
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 5th Nov 2021 10:04
This post has been marked by the post author as the answer.
Hello,
sorry for the late reply.
The default behaviour of the plugin is that the virtual resolution changes to match the window size.
This means that if you have a Full HD monitor and then switch to Fullscreen, the virtual resolution changes to 1920x1080.
If you do not want this, you should call the command nk.FixedVirtualResolution(1) after nkInit. Then the virtual resolution remains at 1024x768 or what you have set.
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
kazuki
5
Years of Service
User Offline
Joined: 8th Feb 2019
Location: Japan
Posted: 5th Nov 2021 12:00
Thank you.
It now works as intended.

Login to post a reply

Server time is: 2024-04-24 02:05:26
Your offset time is: 2024-04-24 02:05:26