summaryrefslogtreecommitdiff
path: root/examples/screenshot.c
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2025-01-20 04:44:20 +0100
committerMitya Selivanov <automainint@guattari.tech>2025-01-20 04:44:20 +0100
commitcc074713176fd83151150125e69b8391cb33f218 (patch)
tree9c191e7dfcd914a2eaa037d9981bb5d130bf96ff /examples/screenshot.c
parente1a7b1c703823aac2ad2ac278a34725c377c0b63 (diff)
downloadreduced_system_layer-cc074713176fd83151150125e69b8391cb33f218.zip
Impl screenshot on Wayland
Diffstat (limited to 'examples/screenshot.c')
-rw-r--r--examples/screenshot.c10
1 files changed, 5 insertions, 5 deletions
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();