shithub: m8c

Download patch

ref: 65c7627ddec59c217e2d0b8f2820a594e953f08d
parent: 5e6c4d4773a03157bc83771ba2b6fde173cb0785
author: Jonne Kokkonen <jonne.kokkonen@gmail.com>
date: Thu Jun 13 17:29:34 EDT 2024

fix logical render size on model 02

--- a/src/render.c
+++ b/src/render.c
@@ -105,9 +105,10 @@
     SDL_SetWindowSize(win, (texture_width * 2), (texture_height * 2));
   }
 
+  SDL_DestroyTexture(maintexture);
+
   SDL_RenderSetLogicalSize(rend, texture_width, texture_height);
 
-  SDL_DestroyTexture(maintexture);
   maintexture = SDL_CreateTexture(rend, SDL_PIXELFORMAT_ARGB8888,
                                   SDL_TEXTUREACCESS_TARGET, texture_width,
                                   texture_height);
--