From cc074713176fd83151150125e69b8391cb33f218 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Mon, 20 Jan 2025 04:44:20 +0100 Subject: Impl screenshot on Wayland --- examples/screenshot.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'examples') diff --git a/examples/screenshot.c b/examples/screenshot.c index 55bec95..ebadc99 100644 --- a/examples/screenshot.c +++ b/examples/screenshot.c @@ -12,11 +12,11 @@ void update_and_render_frame(void) { p_wait_events(); - draw_pixels((Brush) {0}, 0, 0, width, height, (Pixel_Buffer) { - .width = width, - .height = height, - .line_size = width, - .pixels = g_platform.sketch, + draw_pixels((Brush) {0}, 0, 0, g_platform.real_width, g_platform.real_height, (Pixel_Buffer) { + .width = width, + .height = height, + .stride = width, + .pixels = g_platform.sketch, }); p_render_frame(); -- cgit v1.2.3