comparison 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
comparison
equal deleted inserted replaced
2696:25fc676e3521 2697:d1a79e4ba26a
2110 if (render_gl && which <= FRAMEBUFFER_EVEN) { 2110 if (render_gl && which <= FRAMEBUFFER_EVEN) {
2111 *pitch = PITCH_BYTES(LINEBUF_SIZE); 2111 *pitch = PITCH_BYTES(LINEBUF_SIZE);
2112 return texture_buf; 2112 return texture_buf;
2113 } else if (render_gl && which >= FRAMEBUFFER_USER_START) { 2113 } else if (render_gl && which >= FRAMEBUFFER_USER_START) {
2114 uint8_t win_idx = which - FRAMEBUFFER_USER_START; 2114 uint8_t win_idx = which - FRAMEBUFFER_USER_START;
2115 *pitch = PITCH_BYTES(extras[win_idx].tex_width); 2115 *pitch = PITCH_BYTES(extras[win_idx].orig_tex_width);
2116 return extras[win_idx].texture_buf; 2116 return extras[win_idx].texture_buf;
2117 } else { 2117 } else {
2118 #endif 2118 #endif
2119 if (which == FRAMEBUFFER_UI && !sdl_textures[which]) { 2119 if (which == FRAMEBUFFER_UI && !sdl_textures[which]) {
2120 sdl_textures[which] = SDL_CreateTexture(main_renderer, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_STREAMING, main_width, main_height); 2120 sdl_textures[which] = SDL_CreateTexture(main_renderer, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_STREAMING, main_width, main_height);