Skip to content

Commit

Permalink
Removed wrong nk_window_is_closed in demos
Browse files Browse the repository at this point in the history
  • Loading branch information
vurtun committed Apr 6, 2017
1 parent 0d010a3 commit 5cf6f20
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion demo/d3d11/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,6 @@ int main(void)
}
}
nk_end(ctx);
if (nk_window_is_closed(ctx, "Demo")) break;

/* -------------- EXAMPLES ---------------- */
/*calculator(ctx);*/
Expand Down
1 change: 0 additions & 1 deletion demo/gdi/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ int main(void)
nk_property_int(ctx, "Compression:", 0, &property, 100, 10, 1);
}
nk_end(ctx);
if (nk_window_is_closed(ctx, "Demo")) break;

/* -------------- EXAMPLES ---------------- */
/*calculator(ctx);*/
Expand Down
1 change: 0 additions & 1 deletion demo/gdip/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ int main(void)
nk_property_int(ctx, "Compression:", 0, &property, 100, 10, 1);
}
nk_end(ctx);
if (nk_window_is_closed(ctx, "Demo")) break;

/* -------------- EXAMPLES ---------------- */
/*calculator(ctx);*/
Expand Down
4 changes: 2 additions & 2 deletions demo/sdl_opengl3/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
* and the corresponding function. */
/*#include "../style.c"*/
/*#include "../calculator.c"*/
/*#include "../overview.c"*/
/*#include "../node_editor.c"*/
/*#include "../overview.c" */
/*#include "../node_editor.c" */

/* ===============================================================
*
Expand Down
2 changes: 1 addition & 1 deletion demo/x11/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ main(void)
nk_property_int(ctx, "Compression:", 0, &property, 100, 10, 1);
}
nk_end(ctx);
if (nk_window_is_closed(ctx, "Demo")) break;
if (nk_window_is_hidden(ctx, "Demo")) break;

/* -------------- EXAMPLES ---------------- */
/*calculator(ctx);*/
Expand Down
1 change: 0 additions & 1 deletion demo/x11_opengl2/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@ int main(int argc, char **argv)
}
}
nk_end(ctx);
if (nk_window_is_closed(ctx, "Demo")) break;

/* -------------- EXAMPLES ---------------- */
/*calculator(ctx);*/
Expand Down
1 change: 0 additions & 1 deletion demo/x11_opengl3/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,6 @@ int main(int argc, char **argv)
}
}
nk_end(ctx);
if (nk_window_is_closed(ctx, "Demo")) break;

/* -------------- EXAMPLES ---------------- */
/*calculator(ctx);*/
Expand Down

0 comments on commit 5cf6f20

Please sign in to comment.