Permalink
Browse files

max res x2

  • Loading branch information...
weihuoya committed Jul 9, 2018
1 parent 4020330 commit 535def4b74bbc552f3737d10fdc9c4b14544d9b5
Showing with 4 additions and 2 deletions.
  1. +4 −2 Core/SaveState.cpp
View
@@ -851,13 +851,15 @@ namespace SaveState
break;
case SAVESTATE_SAVE_SCREENSHOT:
tempResult = TakeGameScreenshot(op.filename.c_str(), ScreenshotFormat::JPG, SCREENSHOT_DISPLAY);
{
int maxRes = g_Config.iInternalResolution > 2 ? 2 : -1;
tempResult = TakeGameScreenshot(op.filename.c_str(), ScreenshotFormat::JPG, SCREENSHOT_DISPLAY, nullptr, nullptr, maxRes);
callbackResult = tempResult ? Status::SUCCESS : Status::FAILURE;
if (!tempResult) {
ERROR_LOG(SAVESTATE, "Failed to take a screenshot for the savestate! %s", op.filename.c_str());
}
break;
}
default:
ERROR_LOG(SAVESTATE, "Savestate failure: unknown operation type %d", op.type);
callbackResult = Status::FAILURE;

0 comments on commit 535def4

Please sign in to comment.