george68 Posted June 14, 2021 Share Posted June 14, 2021 Hi, The following function call returns a NULL pointer: pWindow = Window::Create("Hello World", 0, 0, 1280, 720); Any idea why does this happening? Quote Link to comment Share on other sites More sharing options...
Josh Posted June 14, 2021 Share Posted June 14, 2021 Yes, you need to retrieve the list of available graphics modes and select the last one. This might not match what you think your max resolution is if DPI scaling is in use on your machine: https://www.leadwerks.com/learn?page=API-Reference_Object_System 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
george68 Posted June 15, 2021 Author Share Posted June 15, 2021 Thank you, It works. Here is a code snippet for anyone may interested for a quick pick: iVec2 gm; for (int i = 0; i < System::CountGraphicsModes(); ++i) gm = System::GetGraphicsMode(i); pWindow = Window::Create("Hello world", 0, 0, gm.x, gm.y, Window::FullScreen); 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.