mirror of
https://git.sr.ht/~rabbits/uxn
synced 2024-11-17 19:45:11 +00:00
set render logical size (fixes zooming with npe)
This commit is contained in:
parent
9a4328ccb5
commit
21b78f2aed
1 changed files with 1 additions and 0 deletions
|
@ -113,6 +113,7 @@ init(void)
|
||||||
gRenderer = SDL_CreateRenderer(gWindow, -1, 0);
|
gRenderer = SDL_CreateRenderer(gWindow, -1, 0);
|
||||||
if(gRenderer == NULL)
|
if(gRenderer == NULL)
|
||||||
return error("Renderer", SDL_GetError());
|
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);
|
gTexture = SDL_CreateTexture(gRenderer, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_STATIC, ppu.width, ppu.height);
|
||||||
if(gTexture == NULL)
|
if(gTexture == NULL)
|
||||||
return error("Texture", SDL_GetError());
|
return error("Texture", SDL_GetError());
|
||||||
|
|
Loading…
Reference in a new issue