Merge pull request #3713 from Laserlicht/scalingMode

scalingMode to config
This commit is contained in:
Ivan Savenko authored and GitHub committed 2024-04-09 12:48:35 +03:00
commit 576939f105
2 files changed
+8 -2

No files matched your search

+1 -1
View File
@@ -294,7 +294,7 @@ void ScreenHandler::initializeWindow()
SDL_RendererInfo info;
SDL_GetRendererInfo(mainRenderer, &info);
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "best");
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, settings["video"]["scalingMode"].String().c_str());
logGlobal->info("Created renderer %s", info.name);
}
+7 -1
View File
@@ -160,7 +160,8 @@
"displayIndex",
"showfps",
"targetfps",
"vsync"
"vsync",
"scalingMode"
],
"properties" : {
"resolution" : {
@@ -223,6 +224,11 @@
"vsync" : {
"type" : "boolean",
"default" : true
},
"scalingMode" : {
"type" : "string",
"enum" : [ "nearest", "linear", "best" ],
"default" : "best"
}
}
},