From 8b7a11b71491eb9438c63d760599dacfe12f65f0 Mon Sep 17 00:00:00 2001 From: Nishi Date: Sun, 27 Sep 2026 12:42:50 +0900 Subject: [PATCH] fix example --- examples/basic/image.c | 4 ++-- examples/basic/listbox.c | 10 +++++----- examples/basic/periodic.c | 16 ++++++++-------- examples/basic/subwindow.c | 6 +++--- examples/basic/tab.c | 6 +++--- examples/basic/treeview.c | 8 ++++---- examples/basic/viewport.c | 4 ++-- examples/gldemos/clock.c | 10 +++++----- 8 files changed, 32 insertions(+), 32 deletions(-) diff --git a/examples/basic/image.c b/examples/basic/image.c index 7d7f55a2..e16747c4 100644 --- a/examples/basic/image.c +++ b/examples/basic/image.c @@ -1,8 +1,8 @@ #include int main() { - MwWidget window, image, image2, image3; - MwLLPixmap px, px2, px3; + MwWidget window, image, image2, image3; + MwPixmap px, px2, px3; MwLibraryInit(); diff --git a/examples/basic/listbox.c b/examples/basic/listbox.c index 0ec9fe7c..ab2935dd 100644 --- a/examples/basic/listbox.c +++ b/examples/basic/listbox.c @@ -23,11 +23,11 @@ void MWAPI activate(MwWidget handle, void* user, void* call) { } int main() { - MwWidget lb; - int len = sizeof(harvard) / sizeof(harvard[0]) - 1; - int i; - int index; - MwLLPixmap px; + MwWidget lb; + int len = sizeof(harvard) / sizeof(harvard[0]) - 1; + int i; + int index; + MwPixmap px; MwLibraryInit(); diff --git a/examples/basic/periodic.c b/examples/basic/periodic.c index f1af2490..12de1b19 100644 --- a/examples/basic/periodic.c +++ b/examples/basic/periodic.c @@ -140,13 +140,13 @@ static void MWAPI menu_handler(MwWidget handle, void* user, void* call) { } int main() { - int i, j; - MwWidget f, w, b; - MwLLPixmap px; - int index; - MwMenu m, m2; - void* v; - MwRect rc; + int i, j; + MwWidget f, w, b; + MwPixmap px; + int index; + MwMenu m, m2; + void* v; + MwRect rc; MwLibraryInit(); @@ -383,5 +383,5 @@ int main() { MwLoop(window); - MwLLDestroyPixmap(px); + MwDestroyPixmap(px); } diff --git a/examples/basic/subwindow.c b/examples/basic/subwindow.c index 93145923..fbdc24c4 100644 --- a/examples/basic/subwindow.c +++ b/examples/basic/subwindow.c @@ -11,9 +11,9 @@ static void MWAPI resize(MwWidget handle, void* user, void* client) { } int main() { - MwWidget w; - int i; - MwLLPixmap px[6]; + MwWidget w; + int i; + MwPixmap px[6]; MwLibraryInit(); diff --git a/examples/basic/tab.c b/examples/basic/tab.c index 8ae16c04..818ec1c8 100644 --- a/examples/basic/tab.c +++ b/examples/basic/tab.c @@ -10,9 +10,9 @@ static void MWAPI resize(MwWidget handle, void* user, void* client) { } int main() { - MwWidget w; - int i; - MwLLPixmap px[6]; + MwWidget w; + int i; + MwPixmap px[6]; MwLibraryInit(); diff --git a/examples/basic/treeview.c b/examples/basic/treeview.c index 273dd3e2..791f3708 100644 --- a/examples/basic/treeview.c +++ b/examples/basic/treeview.c @@ -21,10 +21,10 @@ void MWAPI activate(MwWidget handle, void* user, void* call) { } int main() { - MwWidget tv; - MwLLPixmap px; - int i; - void * p = NULL, *r; + MwWidget tv; + MwPixmap px; + int i; + void * p = NULL, *r; MwLibraryInit(); diff --git a/examples/basic/viewport.c b/examples/basic/viewport.c index 930488d9..63487bc3 100644 --- a/examples/basic/viewport.c +++ b/examples/basic/viewport.c @@ -16,8 +16,8 @@ static void MWAPI resize(MwWidget handle, void* user, void* call) { } int main() { - MwWidget w; - MwLLPixmap px; + MwWidget w; + MwPixmap px; MwLibraryInit(); diff --git a/examples/gldemos/clock.c b/examples/gldemos/clock.c index 2c1c7031..2cbdcf83 100644 --- a/examples/gldemos/clock.c +++ b/examples/gldemos/clock.c @@ -79,7 +79,7 @@ void MWAPI tick(MwWidget handle, void* user, void* call) { if(render && w > 0 && h > 0) { unsigned char* buffer = malloc(w * h * 4); - MwLLPixmap px; + MwPixmap px; int j; glReadPixels(0, 0, w, h, GL_RGBA, GL_UNSIGNED_BYTE, buffer); @@ -96,7 +96,7 @@ void MWAPI tick(MwWidget handle, void* user, void* call) { MwVaApply(window, MwNiconPixmap, px, NULL); - MwLLDestroyPixmap(px); + MwDestroyPixmap(px); free(buffer); } @@ -133,7 +133,7 @@ void MWAPI resize(MwWidget handle, void* user, void* call) { } int main() { - MwLLColor bgcolor, fgcolor; + MwColor bgcolor, fgcolor; MwLibraryInit(); @@ -164,6 +164,6 @@ int main() { MwLoop(window); - MwLLFreeColor(fgcolor); - MwLLFreeColor(bgcolor); + MwFreeColor(fgcolor); + MwFreeColor(bgcolor); }