Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _dxDrawText = dxDrawText
- _dxDrawRectangle = dxDrawRectangle
- screenX, screenY = guiGetScreenSize()
- originalX, originalY = 1366, 768
- function dxDrawText(text, left, top, right, top, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, colorCoded, subPixelPositioning)
- return _dxDrawText(text, left*(screenX/originalX), top*(screenY/originalY), right, top, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, colorCoded, subPixelPositioning)
- end
- function dxDrawRectangle(startX, startY, width, height, color, postGUI)
- return _dxDrawRectangle(startX*(screenX/originalX), startY*(screenY/originalY), width, height, color, postGUI)
- end
Advertisement
Add Comment
Please, Sign In to add comment