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:
parent
9b2ff380e0
commit
256ee94297
|
@ -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;
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user