uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 21b78f2aed123ba081316dce3165f441bb21abfb
parent 9a4328ccb5efb683efac66761b64a4afe26a9fb5
Author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
Date:   Tue, 18 May 2021 08:18:43 +0000

set render logical size (fixes zooming with npe)

Diffstat:
Msrc/emulator.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/emulator.c b/src/emulator.c @@ -113,6 +113,7 @@ init(void) gRenderer = SDL_CreateRenderer(gWindow, -1, 0); if(gRenderer == NULL) return error("Renderer", SDL_GetError()); + SDL_RenderSetLogicalSize(gRenderer, ppu.width, ppu.height); gTexture = SDL_CreateTexture(gRenderer, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_STATIC, ppu.width, ppu.height); if(gTexture == NULL) return error("Texture", SDL_GetError());