From 2b68d3d3b53df4594568eccf629ec16a8bd10cd0 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Sat, 22 Nov 2025 09:01:21 +0000 Subject: [PATCH] fix demo git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@776 b9cfdab3-6d41-4d17-bbe4-086880011989 --- examples/gldemos/clock.c | 4 +++- examples/gldemos/triangle.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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));