win32

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit e6038dad5efd229279931bec2d739c0427a2a939
parent 48efb838063cac0ef7fe79438f68c9a2184cdb33
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Wed, 17 Dec 2025 18:27:43 +0900

add another picture

Diffstat:
Mwin32.c | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/win32.c b/win32.c @@ -82,6 +82,13 @@ int main(void) { XRectangle rectangle2 = { .x = 0, .y = 0, .width = width2, .height = height2 }; XRenderFillRectangles(display, PictOpSrc, picture32_2, &color2, &rectangle2, 1); + int width3 = 300, height3 = 300; + Pixmap pixmap32_3 = XCreatePixmap(display, window32, width3, height3, 32); + Picture picture32_3 = XRenderCreatePicture(display, pixmap32_3, &pictformat32, 0, NULL); + XRenderColor color3 = { .red = 0, .green = 0, .blue = 0xffff, .alpha = 0x3fff }; + XRectangle rectangle3 = { .x = 0, .y = 0, .width = width3, .height = height3 }; + XRenderFillRectangles(display, PictOpSrc, picture32_3, &color3, &rectangle3, 1); + XSync(display, 0); int quit = 0; XEvent event; @@ -89,6 +96,7 @@ int main(void) { XRenderFillRectangles(display, PictOpSrc, picture, &color, &rectangle, 1); XRenderComposite(display, PictOpOver, picture32_1, 0, picture, 0, 0, 0, 0, 100, 100, width1, height1); XRenderComposite(display, PictOpOver, picture32_2, 0, picture, 0, 0, 0, 0, 200, 150, width2, height2); + XRenderComposite(display, PictOpOver, picture32_3, 0, picture, 0, 0, 0, 0, 150, 200, width3, height3); XNextEvent(display, &event); if (event.type == KeyPress && event.xkey.keycode == 49) { quit = 1;