From 83d0e3d113f3ae2f5a8fae96fffb593980d73134 Mon Sep 17 00:00:00 2001 From: bbbradsmith Date: Tue, 23 Jan 2024 20:22:47 -0500 Subject: [PATCH] ScreenConv routines round line width up to 16, match behaviour --- src/screenSnapShot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screenSnapShot.c b/src/screenSnapShot.c index 450c5b9f4..450859132 100644 --- a/src/screenSnapShot.c +++ b/src/screenSnapShot.c @@ -410,7 +410,7 @@ static int ScreenSnapShot_SaveNEO(const char *filename) * As a fallback we just copy the video data from ST RAM. */ { video_base = Video_GetScreenBaseAddr(); - video_size = (uint32_t)(bpp * sw * sh) / 8; + video_size = (uint32_t)(bpp * ((sw + 15) & ~15) * sh) / 8; if ((video_base + video_size) <= STRamEnd) { fwrite(STRam + video_base, 1, video_size, fp);