1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-06-27 23:14:05 +00:00

Added Function to set Overscan (#13)

* Added `gfx_set_overscan` to set overscan in GLideN64.

* Set overscan as default.

Co-authored-by: DaMarkov <DaMarkovZED@gmail.com>
This commit is contained in:
DaMarkov 2022-03-26 16:23:33 +01:00 committed by GitHub
parent 9b2ff380e0
commit 256ee94297
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 2 deletions

View File

@ -87,7 +87,20 @@ void Config::resetToDefaults()
#else
frameBufferEmulation.fbInfoDisabled = 1;
#endif
#ifdef NATIVE
frameBufferEmulation.enableOverscan = 1;
config.frameBufferEmulation.overscanPAL.left = 4;
config.frameBufferEmulation.overscanPAL.right = 4;
config.frameBufferEmulation.overscanPAL.top = 0;
config.frameBufferEmulation.overscanPAL.bottom = 3;
config.frameBufferEmulation.overscanNTSC.left = 4;
config.frameBufferEmulation.overscanNTSC.right = 4;
config.frameBufferEmulation.overscanNTSC.top = 0;
config.frameBufferEmulation.overscanNTSC.bottom = 3;
#else
frameBufferEmulation.enableOverscan = 0;
#endif
textureFilter.txFilterMode = 0;
textureFilter.txEnhancementMode = 0;

View File

@ -175,8 +175,16 @@ extern "C" {
g_width = newWidth;
}
bool gfx_force_43_enabled() {
return config.frameBufferEmulation.aspect == 1;
void gfx_set_overscan(int left, int top, int right, int bottom) {
config.frameBufferEmulation.enableOverscan = 1;
config.frameBufferEmulation.overscanPAL.left = left;
config.frameBufferEmulation.overscanPAL.right = right;
config.frameBufferEmulation.overscanPAL.top = top;
config.frameBufferEmulation.overscanPAL.bottom = bottom;
config.frameBufferEmulation.overscanNTSC.left = left;
config.frameBufferEmulation.overscanNTSC.right = right;
config.frameBufferEmulation.overscanNTSC.top = top;
config.frameBufferEmulation.overscanNTSC.bottom = bottom;
}
void gfx_shutdown() {