Repaired zoom

This commit is contained in:
neauoire 2021-08-28 13:44:53 -07:00
parent c70f16f7ac
commit c84b5015e4
1 changed files with 8 additions and 1 deletions

View File

@ -112,7 +112,14 @@ redraw(Uxn *u)
{
if(devsystem->dat[0xe])
inspect(&ppu, u->wst.dat, u->wst.ptr, u->rst.ptr, u->ram.dat);
SDL_BlitSurface(idxSurface, NULL, winSurface, &gRect);
if(rgbaSurface == NULL)
SDL_BlitScaled(idxSurface, NULL, winSurface, &gRect);
else if(zoom == 1)
SDL_BlitSurface(idxSurface, NULL, winSurface, &gRect);
else {
SDL_BlitSurface(idxSurface, NULL, rgbaSurface, NULL);
SDL_BlitScaled(rgbaSurface, NULL, winSurface, &gRect);
}
SDL_UpdateWindowSurface(gWindow);
reqdraw = 0;
}