Jump to content

Game Run F5


Go to solution Solved by Dreikblack,

Recommended Posts

  • Solution
Posted

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.

  • Thanks 1
Posted

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.

  • Like 1

My job is to make tools you love, with the features you want, and performance you can't live without.

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...