Skip to content

Commit

Permalink
Do not add scaled resolutions for PS Vita (#8535)
Browse files Browse the repository at this point in the history
  • Loading branch information
ihhub authored Apr 1, 2024
1 parent 92a344b commit 55068ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/engine/screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ namespace
return resolutions[id];
}

#if !defined( TARGET_PS_VITA )
bool IsLowerThanDefaultRes( const fheroes2::ResolutionInfo & value )
{
return value.gameWidth < fheroes2::Display::DEFAULT_WIDTH || value.gameHeight < fheroes2::Display::DEFAULT_HEIGHT;
Expand Down Expand Up @@ -174,6 +175,7 @@ namespace

return resolutions;
}
#endif

std::vector<uint8_t> StandardPaletteIndexes()
{
Expand Down Expand Up @@ -609,7 +611,6 @@ namespace
resolutionSet.emplace( fheroes2::Display::DEFAULT_WIDTH, fheroes2::Display::DEFAULT_HEIGHT );
resolutionSet.emplace( VITA_ASPECT_CORRECTED_WIDTH, fheroes2::Display::DEFAULT_HEIGHT );
resolutionSet.emplace( VITA_FULLSCREEN_WIDTH, VITA_FULLSCREEN_HEIGHT );
resolutionSet = FilterResolutions( resolutionSet );

return std::vector<fheroes2::ResolutionInfo>{ resolutionSet.rbegin(), resolutionSet.rend() };
}();
Expand Down

0 comments on commit 55068ef

Please sign in to comment.