Skip to content

Commit b668b7f

Browse files
authored
Merge pull request #227 from Kerbas-ad-astra/patch-1
Fix drop-downs not working when UI scale != 100%
2 parents 1596fb9 + 7bf0d84 commit b668b7f

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

KerbalAlarmClock/KerbalAlarmClock.cs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -599,15 +599,10 @@ public void DrawGUI()
599599
//If the mainwindow is visible And no pause menu then draw it
600600
if (WindowVisibleByActiveScene)
601601
{
602+
GUIUtility.ScaleAroundPivot(guiScale, Vector2.zero);
602603
DrawWindowsPre();
603-
604-
// Set the scale for this run at stuff
605-
GUIUtility.ScaleAroundPivot(guiScale, Vector2.zero);
606-
DrawWindows();
607-
GUIUtility.ScaleAroundPivot(Vector2.one, Vector2.zero);
608-
609-
DrawWindowsPost();
610-
604+
DrawWindows();
605+
DrawWindowsPost();
611606
}
612607

613608
if (settings.WarpToEnabled)

0 commit comments

Comments
 (0)