BonSay~^ Posted February 23, 2016 Share Posted February 23, 2016 Ola pessoal estou com um problema eu fiz uma imagem na resoluçao 1360, 768 coloquei ela para ficar em todas as resoluçoes bom eu troquei a resoluçao do meu mta para 1024,768 e a imagem ficou no formato oval e ficou esquesita alguem pode me ajudar a deixa-la do mesmo tamanho e certa em todas as resoluçoes lembrando que ela tem alguns calculos por que fiz pra uma radio dj streaming local screenW,screenH = guiGetScreenSize() local resW, resH = 1360,768 local x, y = (screenW/resW), (screenH/resH) girar = 0 function renderDisplay () if msc then local textwidht = dxGetTextWidth ((musicaa or "N/A"), x*0.4, "default-bold") local wihd = x*textwidht/2 end local ls,rs = getSoundLevelData(musica) if(ls ~= false) then ls = ls /9000 local cords = (ls/100000)-(wihd or x*0) local cords2 = (ls/100000)+(wihd or x*0) dxDrawImage(x*(564-cords), y*737-(ls/2), x*33+(ls or 0), y*26+(ls or 0), "som.png", girar, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawImage(x*(801-cords2), y*737-(ls/2), x*33+(ls or 0), y*26+(ls or 0), "som.png", girar, 0, 0, tocolor(255, 255, 255, 255), true) girar = girar + 7 end end Link to comment
n3wage Posted February 23, 2016 Share Posted February 23, 2016 Acho que usar parênteses para separar as operações já deve resolver o problema, tente: dxDrawImage(x * (564-cords), y * ( 737-(ls/2) ), x * ( 33+(ls or 0) ), y * ( 26+(ls or 0) ), "som.png", girar, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawImage(x * (801-cords2), y * ( 737-(ls/2) ), x * ( 33+(ls or 0) ), y * ( 26+(ls or 0) ), "som.png", girar, 0, 0, tocolor(255, 255, 255, 255), true) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now