Jump to content

4k scale


Recommended Posts

You could use a variable that increase the size value of fonts, dx sizes ...etc

local sX,sY = guiGetScreenSize()
local multiplier = 1

if sY >= 2160 then
	multiplier = 2
end

function yourOtherFunctions()
	dxDrawRectangle(0,0,250*multiplier, 100*multiplier)
end

 

Link to comment
14 hours ago, PanMaszyna said:

This code is nonsense, because what when somebody have 1600xX?

I asked about scale for all resolutions with 4K 😆

 

Now i'm using "zoom" and for that moment is ok :D

Nonsense ? ::lol: For other resolutions will be the default one "x1". On the other hand, there is something called elseif (Not sure if you heard about it) which allows you to set a multiplier for other resolutions ...

Link to comment

Hi! You don't need to scale the interface size for monitors larger than the one on which the layout was printed and designed. It's enough just to put everything in the center, some elements really need to be stretched to the whole screen (like the background). But this is rather an exception to the rule.

Link to comment
19 minutes ago, AdYtZu said:

Salut @Tekken imi poti lasa mesaj pe discord? AdYtZu#4188

Scz ca am lasat mesaj aici dar nu am putut sa ti dau mesaj in DM si pe discord nu te mai gasesc

Ro: Lasa-mi mesaj aici, si ar trebui sa poti sa-mi trimiti DM, nu prea mai folosesc Discird, si te rog daca mai scrii in romana fie lasa un mesaj in ambele limbi fie foloseste sectiunea romaneasca, mersi.

Eng: Leave a message here if you wish, also you should be able to send me PM’s

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...