View Single Post
10-07-17, 03:22 AM   #5
Layback_
An Onyxian Warder
Join Date: Feb 2016
Posts: 358
Originally Posted by semlar View Post
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.
Hm......... interesting, but complex

So, would that be the reason for those backdrops with 1 pixel edge (or something that is reasonably small) being extended by 1 pixel especially for (like) nameplates as they are continuously moving and their actual positions are fractions, in fact, which would cause rounding?

Last edited by Layback_ : 10-07-17 at 04:13 AM.
  Reply With Quote