Yue Posted Tuesday at 03:31 PM Posted Tuesday at 03:31 PM local displays = GetDisplays() for k = 1, #displays do Print("Display " .. tostring(k) .. ":") Print(" Position: " .. tostring(displays[k]:GetPosition().x) .. " x " .. tostring(displays[k]:GetSize().y)) Print(" Size: " .. tostring(displays[k]:GetSize().x) .. " x " .. tostring(displays[k]:GetSize().y)) Print(" Scale: " .. tostring(displays[k]:GetScale())) Print(" Graphics Modes:") local gfxmodes = displays[k].graphicsmodes for n = 1, #gfxmodes do Print(" " .. tostring(n) .. ": " .. tostring(gfxmodes[n].x) .. ", " .. tostring(gfxmodes[n].y .. ", " .. tostring(gfxmodes[n].z))) end end Quote Murphy's Law: We don't fix bugs, we document them as features. – Murphy Games
Yue Posted Tuesday at 03:44 PM Author Posted Tuesday at 03:44 PM Error sammple documentation. https://www.leadwerks.com/learn/Display_GetSize?lang=lua Quote Murphy's Law: We don't fix bugs, we document them as features. – Murphy Games
Solution Josh Posted Tuesday at 04:44 PM Solution Posted Tuesday at 04:44 PM fixed 2 Quote Let's build cool stuff and have fun.
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.