Hello everyone,
I recently started programming my own addon and got into Lua. Everything is fine I progressed pretty far and I'm happy but I have ONE problem which I can't get fixed and it's on a pretty basic level too.
So every frame I create uses a 1px border. In my wow installation where I code the addon everything looks perfect. In my REAL wow installation random borders of random frames disappear.
As I was looking into the topic (I hardly found ANYTHING on this) I got 3 points which allegedly are the cause of this.
- placing frames between pixels
- UI Scaling is enabled
- Display mode is Windowed or Windowed (Fullscreen)
I made sure to not place any frames between pixels but any tests with different options on UI scale or display modes don't make a difference. The problem is still existing.
So with this (as an example)...
Code:
local backdrop = {
bgFile = "Interface\\ChatFrame\\ChatFrameBackground",
edgeFile = "Interface\\ChatFrame\\ChatFrameBackground",
tile = false,
tileSize = 0,
edgeSize = 1
};
local frame = CreateFrame("Frame", "SomeIrrelevantName", UIParent);
frame:SetFrameStrata("DIALOG");
frame:SetBackdrop(backdrop);
frame:SetBackdropColor(0.1, 0.1, 0.1, 1);
frame:SetBackdropBorderColor(0, 0, 0, 1);
frame:SetSize(250, 250);
frame:SetPoint("CENTER", UIParent);
... I would create a frame on the center of my screen with a grey background and a black border.
As I already mentioned I make sure to not place it between pixels: If I get new coordinates after dragging I floor the values (because you get stuff like 53.499999945).
Has anyone any idea how I can fix this problem?