MenuBackdrop pixel perfect issue with BackdropTemplate #15


  • Fixed
Closed
  • MrBudsz created this issue Nov 20, 2022

    Hi, i noticed a "pixel perfect" issue when using this lib, there is a hole of 1px between background and left border as seen with these 2 horrible screenshots (hdr does that with wow)

     

    https://media.discordapp.net/attachments/273144328447197186/1044048604471513088/image.png

    https://media.discordapp.net/attachments/273144328447197186/1044049161550577684/image.png

     

    I can fix it by replacing the backdroptemplate of MenuBackdrop for a TooltipBackdropTemplate that use a nineslice template

     

    I replace this

     

    local fmb = _G[name.."MenuBackdrop"] or CreateFrame("Frame", name.."MenuBackdrop", f, BackdropTemplateMixin and "BackdropTemplate" or nil)
    fmb:SetAllPoints()
    fmb:SetBackdrop(BACKDROP_TOOLTIP_16_16_5555)
    fmb:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b)
    fmb:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b)

     

    with

     

    local fmb = _G[name.."MenuBackdrop"] or CreateFrame("Frame", name.."MenuBackdrop", f, "TooltipBackdropTemplate")

    fmb:SetAllPoints()

     

    It work on Dragonflight & Classic Era

  • MrBudsz edited description Nov 20, 2022
  • arithmandar posted a comment Nov 24, 2022

    Thanks for the details, I will look into this.

  • arithmandar added a tag Fixed Nov 29, 2022
  • arithmandar closed issue Jul 28, 2023

To post a comment, please login or register a new account.