From 5baaa3207d878ff16972ae1512a2df892e03d5b0 Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 10 Oct 2025 21:49:29 +0200 Subject: [PATCH] fix gif recording --- src/sdl/i_video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index 3927437bc..cd0f6c837 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -1432,7 +1432,7 @@ void I_ReadScreen(UINT8 * restrict scr, INT32 scale) // uintptr_t is even better since it's guaranteed to be the size of a pointer for (uintptr_t y = 0; y < h; y += scale) for (uintptr_t x = 0; x < w; x += scale) - *scr++ = source[y*vid.height + x]; + *scr++ = source[x*vid.height + y]; } }