diff --git a/src/libretro/FrameBufferLIBRETRO.cxx b/src/libretro/FrameBufferLIBRETRO.cxx index 5f9da5885..ed64a028b 100644 --- a/src/libretro/FrameBufferLIBRETRO.cxx +++ b/src/libretro/FrameBufferLIBRETRO.cxx @@ -18,6 +18,8 @@ #include "bspf.hxx" #include "OSystem.hxx" +#include "AtariNTSC.hxx" +#include "TIAConstants.hxx" #include "FBSurfaceLIBRETRO.hxx" #include "FrameBufferLIBRETRO.hxx" @@ -47,7 +49,8 @@ unique_ptr unique_ptr ptr = make_unique (const_cast(*this), w, h, data); - if(w == 565 && h == 320) + if(w == AtariNTSC::outWidth(TIAConstants::frameBufferWidth) && + h == TIAConstants::frameBufferHeight) { uInt32 pitch; ptr.get()->basePtr(myRenderSurface, pitch); diff --git a/src/libretro/libretro.cxx b/src/libretro/libretro.cxx index 851c9a00d..6d1dc0f89 100644 --- a/src/libretro/libretro.cxx +++ b/src/libretro/libretro.cxx @@ -450,7 +450,7 @@ void retro_get_system_av_info(struct retro_system_av_info *info) info->geometry.base_width = stella.getRenderWidth() - crop_left * (stella.getVideoZoom() == 1 ? 2 : 1); info->geometry.base_height = stella.getRenderHeight(); - info->geometry.max_width = ((stella.getVideoWidthMax() + 3) / 4) * 4; + info->geometry.max_width = stella.getVideoWidthMax(); info->geometry.max_height = stella.getVideoHeightMax(); info->geometry.aspect_ratio = stella.getVideoAspectPar() * (float) info->geometry.base_width / (float) info->geometry.base_height;