diff render_sdl.c @ 2697:d1a79e4ba26a default tip

Fix regression in oscilloscope and composition debug views
author Michael Pavone <pavone@retrodev.com>
date Fri, 20 Jun 2025 10:01:17 -0700
parents 84771c6e31c5
children
line wrap: on
line diff
--- a/render_sdl.c	Thu Jun 19 21:55:54 2025 -0700
+++ b/render_sdl.c	Fri Jun 20 10:01:17 2025 -0700
@@ -2112,7 +2112,7 @@
 		return texture_buf;
 	} else if (render_gl && which >= FRAMEBUFFER_USER_START) {
 		uint8_t win_idx = which - FRAMEBUFFER_USER_START;
-		*pitch = PITCH_BYTES(extras[win_idx].tex_width);
+		*pitch = PITCH_BYTES(extras[win_idx].orig_tex_width);
 		return extras[win_idx].texture_buf;
 	} else {
 #endif