mirror of
https://github.com/dborth/fceugx.git
synced 2025-02-09 05:23:22 +01:00
future support for video shifting
This commit is contained in:
parent
d1b4a4ae5b
commit
fe0b937cd6
@ -37,6 +37,9 @@ DefaultSettings ()
|
|||||||
GCSettings.widescreen = 0; // no aspect ratio correction
|
GCSettings.widescreen = 0; // no aspect ratio correction
|
||||||
GCSettings.hideoverscan = 2; // hide both horizontal and vertical
|
GCSettings.hideoverscan = 2; // hide both horizontal and vertical
|
||||||
|
|
||||||
|
GCSettings.xshift = 0; // video shift
|
||||||
|
GCSettings.yshift = 0;
|
||||||
|
|
||||||
GCSettings.LoadMethod = METHOD_AUTO; // Auto, SD, DVD, USB, Network (SMB)
|
GCSettings.LoadMethod = METHOD_AUTO; // Auto, SD, DVD, USB, Network (SMB)
|
||||||
GCSettings.SaveMethod = METHOD_AUTO; // Auto, SD, Memory Card Slot A, Memory Card Slot B, USB, Network (SMB)
|
GCSettings.SaveMethod = METHOD_AUTO; // Auto, SD, Memory Card Slot A, Memory Card Slot B, USB, Network (SMB)
|
||||||
sprintf (GCSettings.LoadFolder,"fceugx/roms"); // Path to game files
|
sprintf (GCSettings.LoadFolder,"fceugx/roms"); // Path to game files
|
||||||
|
@ -65,6 +65,8 @@ struct SGCSettings{
|
|||||||
int FourScore;
|
int FourScore;
|
||||||
int zapper;
|
int zapper;
|
||||||
int crosshair;
|
int crosshair;
|
||||||
|
int xshift; // video output shift
|
||||||
|
int yshift;
|
||||||
};
|
};
|
||||||
|
|
||||||
void ExitToLoader();
|
void ExitToLoader();
|
||||||
|
@ -438,10 +438,10 @@ UpdateScaling()
|
|||||||
yscale *= GCSettings.ZoomLevel;
|
yscale *= GCSettings.ZoomLevel;
|
||||||
|
|
||||||
// update vertex position matrix
|
// update vertex position matrix
|
||||||
square[0] = square[9] = (-xscale);
|
square[0] = square[9] = (-xscale) + GCSettings.xshift;
|
||||||
square[3] = square[6] = (xscale);
|
square[3] = square[6] = (xscale) + GCSettings.xshift;
|
||||||
square[1] = square[4] = (yscale);
|
square[1] = square[4] = (yscale) - GCSettings.yshift;
|
||||||
square[7] = square[10] = (-yscale);
|
square[7] = square[10] = (-yscale) - GCSettings.yshift;
|
||||||
DCFlushRange (square, 32); // update memory BEFORE the GPU accesses it!
|
DCFlushRange (square, 32); // update memory BEFORE the GPU accesses it!
|
||||||
draw_init ();
|
draw_init ();
|
||||||
|
|
||||||
|
@ -161,6 +161,8 @@ preparePrefsData (int method)
|
|||||||
createXMLSetting("render", "Video Filtering", toStr(GCSettings.render));
|
createXMLSetting("render", "Video Filtering", toStr(GCSettings.render));
|
||||||
createXMLSetting("widescreen", "Aspect Ratio Correction", toStr(GCSettings.widescreen));
|
createXMLSetting("widescreen", "Aspect Ratio Correction", toStr(GCSettings.widescreen));
|
||||||
createXMLSetting("hideoverscan", "Video Cropping", toStr(GCSettings.hideoverscan));
|
createXMLSetting("hideoverscan", "Video Cropping", toStr(GCSettings.hideoverscan));
|
||||||
|
createXMLSetting("xshift", "Horizontal Video Shift", toStr(GCSettings.xshift));
|
||||||
|
createXMLSetting("yshift", "Vertical Video Shift", toStr(GCSettings.yshift));
|
||||||
|
|
||||||
createXMLSection("Controller", "Controller Settings");
|
createXMLSection("Controller", "Controller Settings");
|
||||||
|
|
||||||
@ -312,6 +314,8 @@ decodePrefsData (int method)
|
|||||||
loadXMLSetting(&GCSettings.render, "render");
|
loadXMLSetting(&GCSettings.render, "render");
|
||||||
loadXMLSetting(&GCSettings.widescreen, "widescreen");
|
loadXMLSetting(&GCSettings.widescreen, "widescreen");
|
||||||
loadXMLSetting(&GCSettings.hideoverscan, "hideoverscan");
|
loadXMLSetting(&GCSettings.hideoverscan, "hideoverscan");
|
||||||
|
loadXMLSetting(&GCSettings.xshift, "xshift");
|
||||||
|
loadXMLSetting(&GCSettings.yshift, "yshift");
|
||||||
|
|
||||||
// Controller Settings
|
// Controller Settings
|
||||||
loadXMLSetting(&GCSettings.FourScore, "FSDisable");
|
loadXMLSetting(&GCSettings.FourScore, "FSDisable");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user