Skip to content

Commit

Permalink
fixing for windowed clients
Browse files Browse the repository at this point in the history
  • Loading branch information
blooblahguy committed Jun 27, 2019
1 parent 0b0c251 commit 884681c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ bdCore:RegisterEvent("ADDON_LOADED")
bdCore.class = string.lower(select(1, UnitClass('player')))
bdCore.name = string.lower(UnitName('player'))

bdCore.scale = 768/string.match(({GetScreenResolutions()})[GetCurrentResolution()], "%d+x(%d+)")
bdCore.scale = 768 / string.match( GetCVar( "gxWindowedResolution" ), "%d+x(%d+)" );

bdCore.ui_scale = GetCVar("uiScale") or 1
bdCore.pixel = bdCore.scale / bdCore.ui_scale
bdCore.border = bdCore.pixel * 2
Expand Down

0 comments on commit 884681c

Please sign in to comment.