Add 32x resolution

This commit is contained in:
twinaphex 2017-07-21 19:15:20 +01:00
parent 78acd6068d
commit 3c853b340d
3 changed files with 11 additions and 1 deletions

View File

@ -4001,7 +4001,7 @@ void retro_set_environment(retro_environment_t cb)
#ifdef HAVE_VULKAN
{ option_adaptive_smoothing, "Adaptive smoothing; enabled|disabled" },
#endif
{ option_internal_resolution, "Internal GPU resolution; 1x(native)|2x|4x|8x|16x" },
{ option_internal_resolution, "Internal GPU resolution; 1x(native)|2x|4x|8x|16x|32x" },
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES)
// Only used in GL renderer for now.
{ option_filter, "Texture filtering; nearest|SABR|xBR|bilinear|3-point|JINC2" },

View File

@ -275,6 +275,11 @@ GlRenderer::GlRenderer(DrawConfig* config)
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value) {
/* Same limitations as libretro.cpp */
upscaling = var.value[0] -'0';
if (var.value[1] != 'x')
{
upscaling = (var.value[0] - '0') * 10;
upscaling += var.value[1] - '0';
}
}
var.key = option_filter;

View File

@ -150,6 +150,11 @@ void rsx_vulkan_refresh_variables(void)
{
/* Same limitations as libretro.cpp */
scaling = var.value[0] - '0';
if (var.value[1] != 'x')
{
scaling = (var.value[0] - '0') * 10;
scaling += var.value[1] - '0';
}
}
var.key = option_adaptive_smoothing;