Jump to content

Wrong Calculing


Snow-Man

Recommended Posts

sizeX, sizeY = guiGetScreenSize() 
rsx, rsy = sizeX/1280, sizeY/1024 -- Max Resolution 
  
dxDrawRectangle(rsx*484, rsy*493, rsx*125, rsy*32, tocolor(0, 0, 0, 150), true) 
dxDrawText("  Login", rsx*484, rsy*493, rsy*561, rsy*446, tocolor(255, 255, 255, 255), 0.80, myFont, "left", "top", false, false, true, false, false) 

when i use that, it work fine but when i change resolution i see positions of dx has been changed :(

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