View Single Post
11-21-13, 04:14 AM   #12
Uitat
A Chromatic Dragonspawn
 
Uitat's Avatar
AddOn Author - Click to view addons
Join Date: May 2011
Posts: 162
ok so i took advice and did find/replace on 20 lua files to accommodate the changes i am posting here, i do value your suggestions and this time after thinking about it and tossing out the pride here are my changes

tell me what you think.

local resolHeight = GetScreenHeight()
local resolWidth = GetScreenWidth()
local aspectRatio = (resolWidth/resolHeight)
-- print out to chat to confirm aspect ratio has value this is tempoaray, not intended for end user
print ("if this function works your Aspect ratio is", aspectRatio)


is there a way in lua for me to reduce the value ofr aspectRatio to 2 decimals rather then having 1.77777777bla bla bla
  Reply With Quote