View Single Post
Old 04-11-10, 03:35 PM   #13
Saiket
A Chromatic Dragonspawn
 
Saiket's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 152
Originally Posted by nightcracker View Post
I'm saying, there is no way to get the UIScale before VARIABLES_LOADED(I think).
Even before VARIABLES_LOADED, UIParent:GetScale() returns 1 and GetScreenWidth() returns a value scaled to 1. No matter when its run, the product of those two will be the same.

Originally Posted by recluse View Post
Do any of these methods take into consideration using windowed mode (sans Maximized option)? I ask because, say your Windows desktop resolution is 1024x768. If you run WoW at 1024x768 in a non-maximized windowed mode, the actual resolution is a bit lower due to the WoW window's borders, title bar, and even the task bar.
Since there's no way for a mod to know how big the window is, or where it's positioned on-screen, that can't be done.
Saiket is offline   Reply With Quote