r2ks Posted December 25, 2024 Share Posted December 25, 2024 when i run the game in f5 my window is so small i can not resize it any Help or is this a Bug.. Quote Link to comment Share on other sites More sharing options...
Solution Dreikblack Posted December 26, 2024 Solution Share Posted December 26, 2024 Only 2D app can be resized if you add style in CreateWindow in main lua/cpp WINDOW_RESIZABLE You can change size in CreateWindow line, 3rd and 4th params are width and height. When game is running resize is possible with recreating a window. 1 Quote Link to comment Share on other sites More sharing options...
r2ks Posted December 26, 2024 Author Share Posted December 26, 2024 @DreikblackThank you, Works much better set it to 2560, 1440 --Create a window local window = CreateWindow("Ultra Engine", 0, 0, 2560, 1440, displays[1], WINDOW_CENTER | WINDOW_TITLEBAR) Quote Link to comment Share on other sites More sharing options...
Dreikblack Posted December 26, 2024 Share Posted December 26, 2024 You can also make it fullscreen with WINDOW_FULLSCREEN local window = CreateWindow("Ultra Engine", 0, 0, 2560, 1440, displays[1], WINDOW_CENTER | WINDOW_TITLEBAR | WINDOW_FULLSCREEN) Quote Link to comment Share on other sites More sharing options...
Josh Posted December 26, 2024 Share Posted December 26, 2024 You might want to do it this way: local window = CreateWindow("Ultra Engine", 0, 0, 1280 * displays[1].scale, 720 * displays[1].scale, displays[1], WINDOW_CENTER | WINDOW_TITLEBAR) This will adjust the size for the user's DPI scale. 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...
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.