netejant capçaleres
This commit is contained in:
@@ -212,8 +212,8 @@ auto setOptions(const std::string& var, const std::string& value) -> bool {
|
||||
{"video.mode", [](const std::string& v) { video.fullscreen = stringToBool(v); }},
|
||||
{"video.filter", [](const std::string& v) {
|
||||
int val = safeStoi(v, static_cast<int>(GameDefaults::VIDEO_FILTER));
|
||||
if (val == static_cast<int>(ScreenFilter::NEAREST) || val == static_cast<int>(ScreenFilter::LINEAR)) {
|
||||
video.filter = static_cast<ScreenFilter>(val);
|
||||
if (val == static_cast<int>(Screen::Filter::NEAREST) || val == static_cast<int>(Screen::Filter::LINEAR)) {
|
||||
video.filter = static_cast<Screen::Filter>(val);
|
||||
} else {
|
||||
video.filter = GameDefaults::VIDEO_FILTER;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user