mirror of
https://github.com/dborth/fceugx.git
synced 2025-02-03 02:42:32 +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.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.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
|
||||
|
@ -65,6 +65,8 @@ struct SGCSettings{
|
||||
int FourScore;
|
||||
int zapper;
|
||||
int crosshair;
|
||||
int xshift; // video output shift
|
||||
int yshift;
|
||||
};
|
||||
|
||||
void ExitToLoader();
|
||||
|
@ -438,10 +438,10 @@ UpdateScaling()
|
||||
yscale *= GCSettings.ZoomLevel;
|
||||
|
||||
// update vertex position matrix
|
||||
square[0] = square[9] = (-xscale);
|
||||
square[3] = square[6] = (xscale);
|
||||
square[1] = square[4] = (yscale);
|
||||
square[7] = square[10] = (-yscale);
|
||||
square[0] = square[9] = (-xscale) + GCSettings.xshift;
|
||||
square[3] = square[6] = (xscale) + GCSettings.xshift;
|
||||
square[1] = square[4] = (yscale) - GCSettings.yshift;
|
||||
square[7] = square[10] = (-yscale) - GCSettings.yshift;
|
||||
DCFlushRange (square, 32); // update memory BEFORE the GPU accesses it!
|
||||
draw_init ();
|
||||
|
||||
|
@ -161,6 +161,8 @@ preparePrefsData (int method)
|
||||
createXMLSetting("render", "Video Filtering", toStr(GCSettings.render));
|
||||
createXMLSetting("widescreen", "Aspect Ratio Correction", toStr(GCSettings.widescreen));
|
||||
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");
|
||||
|
||||
@ -312,6 +314,8 @@ decodePrefsData (int method)
|
||||
loadXMLSetting(&GCSettings.render, "render");
|
||||
loadXMLSetting(&GCSettings.widescreen, "widescreen");
|
||||
loadXMLSetting(&GCSettings.hideoverscan, "hideoverscan");
|
||||
loadXMLSetting(&GCSettings.xshift, "xshift");
|
||||
loadXMLSetting(&GCSettings.yshift, "yshift");
|
||||
|
||||
// Controller Settings
|
||||
loadXMLSetting(&GCSettings.FourScore, "FSDisable");
|
||||
|
Loading…
x
Reference in New Issue
Block a user