View Single Post
10-06-17, 05:22 PM   #4
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
Fractions get rounded to the nearest pixel, you can't draw something halfway between two pixels.

The client has an internal resolution with a height of 768 pixels (width depends on widescreen format), and that gets stretched to fit the size of the window on the player's monitor. Even if you use whole numbers in your code, those aren't going to map 1:1 with pixels on their screen, so you're generally dealing with rounded fractions anyway.

There are also other factors that come into play like the UI scale setting and the scale of the frame itself.
  Reply With Quote