Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #129 from negativeExponent/libretro-buildfix
Browse files Browse the repository at this point in the history
Libretro buildfix
  • Loading branch information
NovaSquirrel authored Oct 3, 2022
2 parents 805ed6a + aa0fca1 commit 3e7308c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Libretro/libretro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,27 +384,27 @@ extern "C" {
_console->GetSettings()->SetVideoFilterType(VideoFilterType::None);
} else if(value == "Composite (Blargg)") {
_console->GetSettings()->SetVideoFilterType(VideoFilterType::NTSC);
_console->GetSettings()->SetNtscFilterSettings(0, 0, 0, 0, 0, 0, false, 0, 0, 0, false, true, true);
_console->GetSettings()->SetNtscFilterSettings(0, 0, 0, 0, 0, 0, false, 0, 0, 0, 0, 0, 0, 0, 0, 0, false, true, true, true);
} else if(value == "S-Video (Blargg)") {
_console->GetSettings()->SetVideoFilterType(VideoFilterType::NTSC);
_console->GetSettings()->SetNtscFilterSettings(-1.0, 0, -1.0, 0, 0.2, 0.2, false, 0, 0, 0, false, true, true);
_console->GetSettings()->SetNtscFilterSettings(-1.0, 0, -1.0, 0, 0.2, 0.2, false, 0, 0, 0, 0, 0, 0, 0, 0, 0, false, true, true, true);
} else if(value == "RGB (Blargg)") {
_console->GetSettings()->SetVideoFilterType(VideoFilterType::NTSC);
_console->GetSettings()->SetPictureSettings(0, 0, 0, 0, 0);
_console->GetSettings()->SetNtscFilterSettings(-1.0, -1.0, -1.0, 0, 0.7, 0.2, false, 0, 0, 0, false, true, true);
_console->GetSettings()->SetNtscFilterSettings(-1.0, -1.0, -1.0, 0, 0.7, 0.2, false, 0, 0, 0, 0, 0, 0, 0, 0, 0, false, true, true, true);
} else if(value == "Monochrome (Blargg)") {
_console->GetSettings()->SetVideoFilterType(VideoFilterType::NTSC);
_console->GetSettings()->SetPictureSettings(0, 0, -1.0, 0, 0);
_console->GetSettings()->SetNtscFilterSettings(-0.2, -0.1, -0.2, 0, 0.7, 0.2, false, 0, 0, 0, false, true, true);
_console->GetSettings()->SetNtscFilterSettings(-0.2, -0.1, -0.2, 0, 0.7, 0.2, false, 0, 0, 0, 0, 0, 0, 0, 0, 0, false, true, true, true);
} else if(value == "Bisqwit 2x") {
_console->GetSettings()->SetVideoFilterType(VideoFilterType::BisqwitNtscQuarterRes);
_console->GetSettings()->SetNtscFilterSettings(0, 0, 0, 0, 0, 0, false, 0, 0, 0, false, true, true);
_console->GetSettings()->SetNtscFilterSettings(0, 0, 0, 0, 0, 0, false, 0, 0, 0, 0, 0, 0, 0, 0, 0, false, true, true, true);
} else if(value == "Bisqwit 4x") {
_console->GetSettings()->SetVideoFilterType(VideoFilterType::BisqwitNtscHalfRes);
_console->GetSettings()->SetNtscFilterSettings(0, 0, 0, 0, 0, 0, false, 0, 0, 0, false, true, true);
_console->GetSettings()->SetNtscFilterSettings(0, 0, 0, 0, 0, 0, false, 0, 0, 0, 0, 0, 0, 0, 0, 0, false, true, true, true);
} else if(value == "Bisqwit 8x") {
_console->GetSettings()->SetVideoFilterType(VideoFilterType::BisqwitNtsc);
_console->GetSettings()->SetNtscFilterSettings(0, 0, 0, 0, 0, 0, false, 0, 0, 0, false, true, true);
_console->GetSettings()->SetNtscFilterSettings(0, 0, 0, 0, 0, 0, false, 0, 0, 0, 0, 0, 0, 0, 0, 0, false, true, true, true);
}
}

Expand Down

0 comments on commit 3e7308c

Please sign in to comment.