win32

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

commit 48efb838063cac0ef7fe79438f68c9a2184cdb33
parent f1bc01c09fd6d0c9224b58ff7dc53bb3d50b803c
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Wed, 17 Dec 2025 17:59:26 +0900

use 2 pictures

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

diff --git a/win32.c b/win32.c @@ -75,7 +75,7 @@ int main(void) { XRectangle rectangle1 = { .x = 0, .y = 0, .width = width1, .height = height1 }; XRenderFillRectangles(display, PictOpSrc, picture32_1, &color1, &rectangle1, 1); - int width2 = 300, height2 = 100; + int width2 = 300, height2 = 200; Pixmap pixmap32_2 = XCreatePixmap(display, window32, width2, height2, 32); Picture picture32_2 = XRenderCreatePicture(display, pixmap32_2, &pictformat32, 0, NULL); XRenderColor color2 = { .red = 0, .green = 0xffff, .blue = 0, .alpha = 0x3fff }; @@ -88,7 +88,7 @@ int main(void) { while (!quit) { 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, 200, width2, height2); + XRenderComposite(display, PictOpOver, picture32_2, 0, picture, 0, 0, 0, 0, 200, 150, width2, height2); XNextEvent(display, &event); if (event.type == KeyPress && event.xkey.keycode == 49) { quit = 1;