Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Rayford
Tukui
Commits
b41c0d23
Commit
b41c0d23
authored
Jul 31, 2019
by
Tukz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a resolution bug in latest WoW Build.
parent
b23dfaf6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Tukui/Core/Init.lua
Tukui/Core/Init.lua
+2
-2
No files found.
Tukui/Core/Init.lua
View file @
b41c0d23
...
...
@@ -4,7 +4,7 @@
-- [[ Build the engine ]] --
local
AddOn
,
Engine
=
...
local
Resolution
=
GetCurrentResolution
()
>
0
and
select
(
GetCurrentResolution
(),
GetScreenResolutions
())
or
nil
local
Resolution
=
select
(
1
,
GetPhysicalScreenSize
())
..
"x"
..
select
(
2
,
GetPhysicalScreenSize
())
local
Windowed
=
Display_DisplayModeDropDown
:
windowedmode
()
local
Fullscreen
=
Display_DisplayModeDropDown
:
fullscreenmode
()
...
...
@@ -19,7 +19,7 @@ end
Engine
[
1
].
WindowedMode
=
Windowed
Engine
[
1
].
FullscreenMode
=
Fullscreen
Engine
[
1
].
Resolution
=
Resolution
or
(
Windowed
and
GetCVar
(
"gxWindowedResolution"
))
or
GetCVar
(
"gxFullscreenResolution"
)
Engine
[
1
].
Resolution
=
Resolution
Engine
[
1
].
ScreenHeight
=
tonumber
(
string.match
(
Engine
[
1
].
Resolution
,
"%d+x(%d+)"
))
Engine
[
1
].
ScreenWidth
=
tonumber
(
string.match
(
Engine
[
1
].
Resolution
,
"(%d+)x+%d"
))
Engine
[
1
].
MyName
=
UnitName
(
"player"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment