Thread Tools Display Modes
Prev Previous Post   Next Post Next
10-20-17, 03:56 AM   #18
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Originally Posted by CC_WOW View Post
Right, here is the current (experimental) branch: GitHub link
It's a giant mess right now, which I am going to sort out after I fixed the glitching. You have been warned!

Resike apparently posted some code which is no longer visible here, maybe it was filtered? I've stored it here in the meantime: https://gist.github.com/SacredDuckwh...8b9558fb67fd20

What I meant earlier was that the internal resolution doesn't match the actual screen size (as you have said), so I am looking for a way to map it to that cleanly after scaling it according to the user's settings. This is a direct comparison of the frame at a pixel-perfect scale and upscaled with glitching:



Due to the rounding taking place every once in a while pixels will glitch. I tried applying the rounding that was mentioned here, and it did help, but it isn't quite enough... so I figured I need to make sure the points are anchored to integer coordinates (and I rounded them, which again helped somewhat). For some reason, there are still some glitched borders though.

Examples: Proper UI scale of 768/1080 and then my normal UI scale of ~0.889 (not pixel-perfect and glitched after scaling) - as well as the zoomed-in comparison
If you still need help, give me your code, i'll pixel-perfect it, then you can see how it's done.
  Reply With Quote
 

WoWInterface » Developer Discussions » Graphics Help » What parts of an addon's GUI should be "pixel perfect"?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off