From 971492f75c778f6c7fdeae61fcd3560144990c10 Mon Sep 17 00:00:00 2001 From: Greg Kennedy Date: Wed, 27 Jul 2016 23:27:07 -0500 Subject: [PATCH] Update x11.cpp A fix for SNES in high-resolution mode - this was causing the Epoch crash scene in Chrono Trigger to display only on the top half of the screen. --- unix/x11.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/unix/x11.cpp b/unix/x11.cpp index 65e395c8..c4aad4b6 100644 --- a/unix/x11.cpp +++ b/unix/x11.cpp @@ -1415,18 +1415,18 @@ void S9xPutImage (int width, int height) } } - // Change the image height if we are in maxaspect mode - if (GUI.maxaspect && GUI.fullscreen) +#ifdef USE_XVIDEO + // Adjust source blit region if SNES would only fill half the screen. + if (height <= SNES_HEIGHT_EXTENDED) GUI.imageHeight = height * 2; -#ifdef USE_XVIDEO if (GUI.use_xvideo && (GUI.xv_format == FOURCC_YUY2)) { uint16 *s = (uint16 *)GUI.blit_screen; uint8 *d = (uint8 *)GUI.image->data; // convert GUI.blit_screen and copy to XV image - for (int y = 0; y < SNES_HEIGHT_EXTENDED * 2; y++) + for (int y = 0; y < copyHeight; y++) { for (int x = 0; x < SNES_WIDTH * 2; x += 2) {