diff --git a/examples/gldemos/clock.c b/examples/gldemos/clock.c index 9c88960..0bece9e 100644 --- a/examples/gldemos/clock.c +++ b/examples/gldemos/clock.c @@ -136,7 +136,9 @@ void resize(MwWidget handle, void* user, void* call) { int main() { MwLLColor bgcolor, fgcolor; - window = MwVaCreateWidget(MwWindowClass, "main", NULL, 0, 0, 250, 100, + MwLibraryInit(); + + window = MwVaCreateWidget(MwWindowClass, "main", NULL, MwDEFAULT, MwDEFAULT, 250, 100, MwNtitle, "clock", NULL); diff --git a/examples/gldemos/triangle.c b/examples/gldemos/triangle.c index cb89907..e3d7823 100644 --- a/examples/gldemos/triangle.c +++ b/examples/gldemos/triangle.c @@ -73,7 +73,7 @@ void activate(MwWidget handle, void* user_data, void* call_data) { int main() { MwLibraryInit(); - window = MwVaCreateWidget(MwWindowClass, "main", NULL, 0, 0, 400, 450, + window = MwVaCreateWidget(MwWindowClass, "main", NULL, MwDEFAULT, MwDEFAULT, 400, 450, MwNtitle, "hello world", NULL); opengl = MwCreateWidget(MwOpenGLClass, "opengl", window, 50, 50, (ow = 300), (oh = 300));