aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornotaz2010-12-15 12:48:30 +0200
committernotaz2010-12-16 18:37:56 +0200
commitf2019b6ea4c2c745188fb2cab69d67c6f015c00d (patch)
tree7ffa901fa07f792f448ebd154bed677c4b280b0c
parent452b85f99f8c0d3f31c7c4ec352d22a8917499d9 (diff)
downloadpcsx_rearmed-f2019b6ea4c2c745188fb2cab69d67c6f015c00d.tar.gz
pcsx_rearmed-f2019b6ea4c2c745188fb2cab69d67c6f015c00d.tar.bz2
pcsx_rearmed-f2019b6ea4c2c745188fb2cab69d67c6f015c00d.zip
check for height changes too
-rw-r--r--plugins/dfxvideo/draw_fb.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/dfxvideo/draw_fb.c b/plugins/dfxvideo/draw_fb.c
index af05dd2..5884f92 100644
--- a/plugins/dfxvideo/draw_fb.c
+++ b/plugins/dfxvideo/draw_fb.c
@@ -84,16 +84,17 @@ static void blit(void)
void DoBufferSwap(void)
{
- static int fbw, fb24bpp;
+ static int fbw, fbh, fb24bpp;
if (PSXDisplay.DisplayMode.x == 0 || PSXDisplay.DisplayMode.y == 0)
return;
/* careful if rearranging this code, we try to set mode and flip
* to get the hardware apply both changes at the same time */
- if (PSXDisplay.DisplayMode.x != fbw || PSXDisplay.RGB24 != fb24bpp) {
- int fbh = PSXDisplay.DisplayMode.y;
+ if (PSXDisplay.DisplayMode.x != fbw || PSXDisplay.DisplayMode.y != fbh
+ || PSXDisplay.RGB24 != fb24bpp) {
fbw = PSXDisplay.DisplayMode.x;
+ fbh = PSXDisplay.DisplayMode.y;
fb24bpp = PSXDisplay.RGB24;
pl_fbdev_set_mode(fbw, fbh, fb24bpp ? 24 : 16);
}