From 2219632c9e065444d2cf3ac3ec7d488d4e624d5e Mon Sep 17 00:00:00 2001 From: grinvader <> Date: Thu, 23 Mar 2006 13:01:24 +0000 Subject: [PATCH] Ok, this should be the last round of buffer refresh fixes. Switching fullscreen with filters on should now work correctly for the SDL port. --- zsnes/src/gui/guikeys.inc | 13 +++++++------ zsnes/src/gui/guimouse.inc | 1 + zsnes/src/linux/gl_draw.c | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/zsnes/src/gui/guikeys.inc b/zsnes/src/gui/guikeys.inc index ef362e05..db7f7e53 100644 --- a/zsnes/src/gui/guikeys.inc +++ b/zsnes/src/gui/guikeys.inc @@ -1185,27 +1185,28 @@ GUIVideoKeys: je near .nosuper2xsai cmp dh,'X' jne .no2xsai - GUIkeystoggleoptn byte[En2xSaI],1 + mov eax,1 jmp .yesfilter .no2xsai cmp dh,'E' jne .nosupereagle - GUIkeystoggleoptn byte[En2xSaI],2 + mov eax,2 jmp .yesfilter .nosupereagle cmp dh,'S' jne .nosuper2xsai - GUIkeystoggleoptn byte[En2xSaI],3 + mov eax,3 .yesfilter + pushad + call Clear2xSaIBuffer + popad mov byte[hqFilter],0 mov byte[scanlines],0 mov byte[cfgscanline],0 mov byte[antienab],0 mov byte[cfginterp],0 mov byte[NTSCFilter],0 - pushad - call Clear2xSaIBuffer - popad + GUIkeystoggleoptn byte[En2xSaI],al .nosuper2xsai cmp dh,'I' jne .nointerpolation diff --git a/zsnes/src/gui/guimouse.inc b/zsnes/src/gui/guimouse.inc index 5fab84a0..0ea238e9 100644 --- a/zsnes/src/gui/guimouse.inc +++ b/zsnes/src/gui/guimouse.inc @@ -893,6 +893,7 @@ SECTION .text NEWSYM SwitchFullScreen pushad + call Clear2xSaIBuffer xor eax,eax mov al,[cvidmode] cmp byte[GUIWFVID+eax],0 diff --git a/zsnes/src/linux/gl_draw.c b/zsnes/src/linux/gl_draw.c index 7e7431ca..b24b4f0f 100644 --- a/zsnes/src/linux/gl_draw.c +++ b/zsnes/src/linux/gl_draw.c @@ -265,7 +265,7 @@ void gl_drawwin() // (see ProcessTransparencies in newgfx16.asm // for ZSNES' current transparency code) UpdateVFrame(); - if (curblank != 0) + if (curblank || cvidmode<6) return; if (BilinearFilter)