Cap resolution options at 1080p on Steam Link and Raspberry Pi due to hardware limitations

This commit is contained in:
Cameron Gutman
2020-02-23 00:43:43 -08:00
parent 46bcbda972
commit 979de190dc
12 changed files with 42 additions and 5 deletions

View File

@@ -253,7 +253,7 @@ int Session::drSubmitDecodeUnit(PDECODE_UNIT du)
}
void Session::getDecoderInfo(SDL_Window* window,
bool& isHardwareAccelerated, bool& isFullScreenOnly)
bool& isHardwareAccelerated, bool& isFullScreenOnly, QSize& maxResolution)
{
IVideoDecoder* decoder;
@@ -266,6 +266,7 @@ void Session::getDecoderInfo(SDL_Window* window,
isHardwareAccelerated = decoder->isHardwareAccelerated();
isFullScreenOnly = decoder->isAlwaysFullScreen();
maxResolution = decoder->getDecoderMaxResolution();
delete decoder;
}