From 2b0c1734f9c2bb3408acf84f94f3759af7cb56f8 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Tue, 14 Oct 2025 07:04:11 +0000 Subject: [PATCH] improve image demo git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@318 b9cfdab3-6d41-4d17-bbe4-086880011989 --- examples/image.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/examples/image.c b/examples/image.c index 0d8dbc5..0f36e42 100644 --- a/examples/image.c +++ b/examples/image.c @@ -6,9 +6,11 @@ int main() { MwNtitle, "image image", NULL); MwWidget image = MwCreateWidget(MwImageClass, "image", window, 50, 50, 200, 400); - MwWidget image2 = MwCreateWidget(MwImageClass, "image", window, 250, 50, 200, 400); + MwWidget image2 = MwCreateWidget(MwImageClass, "image", window, 250, 50, 200, 200); + MwWidget image3 = MwCreateWidget(MwImageClass, "image", window, 250, 250, 200, 200); MwLLPixmap px = MwLoadImage(window, "examples/picture.png"); MwLLPixmap px2 = MwLoadImage(window, "examples/picture.jpg"); + MwLLPixmap px3 = MwLoadImage(window, "resource/logo.png"); MwVaApply(window, MwNiconPixmap, px, @@ -20,6 +22,9 @@ int main() { MwVaApply(image2, MwNpixmap, px2, NULL); + MwVaApply(image3, + MwNpixmap, px3, + NULL); MwLoop(window); }