win32

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

commit 7469dd3c1187b7e2ed1bd7c0ca3fdc9adfc78e99
parent 232f4994ceb3920bcccaeca0e347cff129f4e0d2
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Fri, 19 Dec 2025 22:07:13 +0900

use rectangle2, rectangle3

Diffstat:
Mxcb.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/xcb.c b/xcb.c @@ -1,6 +1,7 @@ #include <stdio.h> #include <stdlib.h> #include <stdarg.h> +#include <string.h> #include <xcb/xcb.h> #include <xcb/xproto.h> #include <xcb/render.h> @@ -78,7 +79,7 @@ int main(void) { xcb_render_create_picture(conn, picture32_2, pixmap32_2, pictformat32, 0, NULL); xcb_render_color_t color2 = { .red = 0, .green = 0xffff, .blue = 0, .alpha = 0x3fff }; xcb_rectangle_t rectangle2 = { .x = 0, .y = 0, .width = width2, height = height2 }; - xcb_render_fill_rectangles(conn, XCB_RENDER_PICT_OP_SRC, picture32_2, color2, 2, &rectangle1); + xcb_render_fill_rectangles(conn, XCB_RENDER_PICT_OP_SRC, picture32_2, color2, 2, &rectangle2); int width3 = 300, height3 = 300; xcb_pixmap_t pixmap32_3 = xcb_generate_id(conn); @@ -87,7 +88,7 @@ int main(void) { xcb_render_create_picture(conn, picture32_3, pixmap32_3, pictformat32, 0, NULL); xcb_render_color_t color3 = { .red = 0, .green = 0, .blue = 0xffff, .alpha = 0x3fff }; xcb_rectangle_t rectangle3 = { .x = 0, .y = 0, .width = width3, height = height3 }; - xcb_render_fill_rectangles(conn, XCB_RENDER_PICT_OP_SRC, picture32_3, color3, 3, &rectangle1); + xcb_render_fill_rectangles(conn, XCB_RENDER_PICT_OP_SRC, picture32_3, color3, 3, &rectangle3); xcb_flush(conn);