mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-12-14 04:43:48 +01:00
optimize playtwitch
This commit is contained in:
parent
a78f02d5c2
commit
9e0b6172c5
1 changed files with 4 additions and 1 deletions
|
@ -46,6 +46,9 @@ pub fn main() !void {
|
|||
defer state.deinit();
|
||||
|
||||
while (c.glfwWindowShouldClose(win) == 0) {
|
||||
if (c.glfwGetWindowAttrib(win, c.GLFW_VISIBLE) == 0)
|
||||
continue;
|
||||
|
||||
c.glfwPollEvents();
|
||||
|
||||
var win_width: c_int = 0;
|
||||
|
@ -75,7 +78,7 @@ pub fn main() !void {
|
|||
c.ImGuiCond_Always,
|
||||
);
|
||||
|
||||
if (win_visible and c.glfwGetWindowAttrib(win, c.GLFW_VISIBLE) != 0) {
|
||||
if (win_visible) {
|
||||
try gui.winContent(state);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue