summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-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();