Skip to content

Commit

Permalink
GameDB: Allow user to choose different mode for ForceDeinterlacing
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Oct 26, 2024
1 parent 82e9bcc commit 8def5b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core/game_database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,11 @@ void GameDatabase::Entry::ApplySettings(Settings& settings, bool display_osd_mes

if (HasTrait(Trait::ForceDeinterlacing))
{
const DisplayDeinterlacingMode new_mode = display_deinterlacing_mode.value_or(DEFAULT_DEINTERLACING_MODE);
const DisplayDeinterlacingMode new_mode = display_deinterlacing_mode.value_or(
(settings.display_deinterlacing_mode != DisplayDeinterlacingMode::Disabled &&
settings.display_deinterlacing_mode != DisplayDeinterlacingMode::Progressive) ?
settings.display_deinterlacing_mode :
DEFAULT_DEINTERLACING_MODE);
if (display_osd_messages && settings.display_deinterlacing_mode != new_mode)
{
APPEND_MESSAGE_FMT(TRANSLATE_FS("GameDatabase", "Deinterlacing set to {}."),
Expand Down

0 comments on commit 8def5b5

Please sign in to comment.