Removed wrong nk_window_is_closed in demos

This commit is contained in:
vurtun 2017-04-06 09:51:50 +02:00
parent 0d010a39a4
commit 5cf6f204b7
7 changed files with 3 additions and 8 deletions

View File

@ -241,7 +241,6 @@ int main(void)
}
}
nk_end(ctx);
if (nk_window_is_closed(ctx, "Demo")) break;
/* -------------- EXAMPLES ---------------- */
/*calculator(ctx);*/

View File

@ -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);*/

View File

@ -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);*/

View File

@ -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" */
/* ===============================================================
*

View File

@ -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);*/

View File

@ -289,7 +289,6 @@ int main(int argc, char **argv)
}
}
nk_end(ctx);
if (nk_window_is_closed(ctx, "Demo")) break;
/* -------------- EXAMPLES ---------------- */
/*calculator(ctx);*/

View File

@ -286,7 +286,6 @@ int main(int argc, char **argv)
}
}
nk_end(ctx);
if (nk_window_is_closed(ctx, "Demo")) break;
/* -------------- EXAMPLES ---------------- */
/*calculator(ctx);*/