Merge pull request #116 from greg-kennedy/patch-1

Update x11.cpp
This commit is contained in:
bearoso 2016-10-01 20:08:06 -05:00 committed by GitHub
commit b3b31b1d26
1 changed files with 4 additions and 4 deletions

View File

@ -1415,18 +1415,18 @@ void S9xPutImage (int width, int height)
} }
} }
// Change the image height if we are in maxaspect mode #ifdef USE_XVIDEO
if (GUI.maxaspect && GUI.fullscreen) // Adjust source blit region if SNES would only fill half the screen.
if (height <= SNES_HEIGHT_EXTENDED)
GUI.imageHeight = height * 2; GUI.imageHeight = height * 2;
#ifdef USE_XVIDEO
if (GUI.use_xvideo && (GUI.xv_format == FOURCC_YUY2)) if (GUI.use_xvideo && (GUI.xv_format == FOURCC_YUY2))
{ {
uint16 *s = (uint16 *)GUI.blit_screen; uint16 *s = (uint16 *)GUI.blit_screen;
uint8 *d = (uint8 *)GUI.image->data; uint8 *d = (uint8 *)GUI.image->data;
// convert GUI.blit_screen and copy to XV image // 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) for (int x = 0; x < SNES_WIDTH * 2; x += 2)
{ {