SNES_ENVIRONMENT_OVERSCAN.

This commit is contained in:
Themaister 2011-11-09 22:18:48 +01:00
parent 4f841c208d
commit 7815940a97
3 changed files with 10 additions and 4 deletions

View File

@ -133,7 +133,7 @@ static const bool video_smooth = true;
static const bool force_aspect = true;
// Crop overscanned frames (7/8 or 15/15 for interlaced frames).
static const bool crop_overscan = false;
static const bool crop_overscan = true;
// Font size for on-screen messages.
static const unsigned font_size = 48;

View File

@ -301,6 +301,11 @@ static bool environment_cb(unsigned cmd, void *data)
SSNES_LOG("SET_PITCH: %u\n", g_extern.system.pitch);
break;
case SNES_ENVIRONMENT_GET_OVERSCAN:
*(bool*)data = !g_settings.video.crop_overscan;
SSNES_LOG("GET_OVERSCAN: %u\n", (unsigned)!g_settings.video.crop_overscan);
break;
default:
return false;
}

View File

@ -67,9 +67,10 @@ extern "C" {
#define SNES_MEMORY_CGRAM 104
// SSNES extension. Not required to be implemented for a working implementation.
#define SNES_ENVIRONMENT_GET_FULLPATH 0 // const char **
#define SNES_ENVIRONMENT_SET_GEOMETRY 1 // const struct snes_geometry *
#define SNES_ENVIRONMENT_SET_PITCH 2 // const unsigned *
#define SNES_ENVIRONMENT_GET_FULLPATH 0 // const char ** -- Full path of game loaded.
#define SNES_ENVIRONMENT_SET_GEOMETRY 1 // const struct snes_geometry * -- Window geometry information for the system/game.
#define SNES_ENVIRONMENT_SET_PITCH 2 // const unsigned * -- Pitch of game image.
#define SNES_ENVIRONMENT_GET_OVERSCAN 3 // bool * -- Boolean value whether or not the implementation should use overscan.
struct snes_geometry
{