Skip to content

Commit debe9b8

Browse files
committed
Fix workspace/timeline transition to blackout happening one frame apart
1 parent 9357d1a commit debe9b8

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

scripts/control_draw/control_draw.gml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,15 @@ if (totalblocks > 0) {
6868
}
6969
}
7070

71+
// Toggle blackout mode
72+
if (keyboard_check_pressed(vk_f10)) {
73+
blackout = !blackout
74+
}
75+
// Toggle fullscreen
76+
if (keyboard_check_pressed(vk_f11)) {
77+
fullscreen = !fullscreen
78+
}
79+
7180
if (theme = 0) window_background = 15790320
7281
if (theme = 1) window_background = 13160660
7382
if (theme = 2) window_background = c_dark
@@ -603,14 +612,6 @@ if (window = 0 && text_focus = -1) {
603612
}
604613
}
605614
}
606-
// Toggle blackout mode
607-
if (keyboard_check_pressed(vk_f10)) {
608-
blackout = !blackout
609-
}
610-
// Toggle fullscreen
611-
if (keyboard_check_pressed(vk_f11)) {
612-
fullscreen = !fullscreen
613-
}
614615
}
615616
// Selecting note blocks
616617
if (select > 0) {

0 commit comments

Comments
 (0)