From 2e4206c833c3960a47a60acf16354d4be3facd9d Mon Sep 17 00:00:00 2001 From: dborth Date: Thu, 20 Nov 2008 16:58:44 +0000 Subject: [PATCH] overscan setting saved in preferences --- source/fceultra/input/cursor.c | 2 +- source/ngc/preferences.c | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/source/fceultra/input/cursor.c b/source/fceultra/input/cursor.c index 47db6d8..e0fabbd 100644 --- a/source/fceultra/input/cursor.c +++ b/source/fceultra/input/cursor.c @@ -1,5 +1,5 @@ #include "share.h" -#include "fceuconfig.h" +#include "fceugx.h" static uint8 GunSight[]={ 0,0,0,0,0,0,1,0,0,0,0,0,0, diff --git a/source/ngc/preferences.c b/source/ngc/preferences.c index 54b81e8..5556034 100644 --- a/source/ngc/preferences.c +++ b/source/ngc/preferences.c @@ -173,6 +173,7 @@ preparePrefsData (int method) createXMLSetting("ZoomLevel", "Zoom Level", FtoStr(GCSettings.ZoomLevel)); createXMLSetting("render", "Video Filtering", toStr(GCSettings.render)); createXMLSetting("widescreen", "Aspect Ratio Correction", toStr(GCSettings.widescreen)); + createXMLSetting("hideoverscan", "Video Cropping", toStr(GCSettings.hideoverscan)); createXMLSection("Controller", "Controller Settings"); @@ -294,15 +295,17 @@ decodePrefsData (int method) loadXMLSettingInt(&GCSettings.currpal, "currpal"); loadXMLSettingInt(&GCSettings.timing, "timing"); - loadXMLSettingInt(&GCSettings.FSDisable, "FSDisable"); loadXMLSettingInt(&GCSettings.slimit, "slimit"); loadXMLSettingInt(&GCSettings.Zoom, "Zoom"); loadXMLSettingFloat(&GCSettings.ZoomLevel, "ZoomLevel"); loadXMLSettingInt(&GCSettings.render, "render"); loadXMLSettingInt(&GCSettings.widescreen, "widescreen"); + loadXMLSettingInt(&GCSettings.hideoverscan, "hideoverscan"); + + // Controller Settings + loadXMLSettingInt(&GCSettings.FSDisable, "FSDisable"); loadXMLSettingInt(&GCSettings.zapper, "zapper"); loadXMLSettingInt(&GCSettings.crosshair, "crosshair"); - // Controller Settings loadXMLController(gcpadmap, "gcpadmap"); loadXMLController(wmpadmap, "wmpadmap");