mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-24 03:29:22 +01:00
add widescreen & shift to preferences, update menu, update credits
This commit is contained in:
parent
5730ab7f94
commit
cf171ce2bb
@ -550,10 +550,11 @@ static char videomenu[][50] = {
|
||||
"Video Filtering",
|
||||
"Widescreen",
|
||||
|
||||
"X-shift ++",
|
||||
" --",
|
||||
"Y-shift ++",
|
||||
" --",
|
||||
"Shift Video Up",
|
||||
"Shift Video Down",
|
||||
"Shift Video Left",
|
||||
"Shift Video Right",
|
||||
|
||||
"Shift: ",
|
||||
"Reset Video Shift",
|
||||
|
||||
@ -631,23 +632,20 @@ VideoOptions ()
|
||||
break;
|
||||
|
||||
case 5:
|
||||
// xscale UP
|
||||
GCSettings.xshift++;
|
||||
// Move up
|
||||
GCSettings.yshift--;
|
||||
break;
|
||||
|
||||
case 6:
|
||||
// xscale DOWN
|
||||
GCSettings.xshift--;
|
||||
break;
|
||||
|
||||
case 7:
|
||||
// yscale UP
|
||||
// Move down
|
||||
GCSettings.yshift++;
|
||||
break;
|
||||
|
||||
case 7:
|
||||
// Move left
|
||||
GCSettings.xshift--;
|
||||
break;
|
||||
case 8:
|
||||
// yscale DOWN
|
||||
GCSettings.yshift--;
|
||||
// Move right
|
||||
GCSettings.xshift++;
|
||||
break;
|
||||
|
||||
case 9:
|
||||
|
@ -238,32 +238,32 @@ Credits ()
|
||||
else
|
||||
ypos += 32;
|
||||
|
||||
setfontsize (18);
|
||||
setfontsize (20);
|
||||
DrawText (-1, ypos += 30, (char*)"Technical");
|
||||
|
||||
setfontsize (14);
|
||||
DrawText (-1, ypos += 22, (char*)"Snes9x v1.5.1 - Snes9x Team");
|
||||
DrawText (-1, ypos += 18, (char*)"GameCube Port 2.0 WIP6 and earlier - SoftDev");
|
||||
DrawText (-1, ypos += 18, (char*)"Additional improvements to 2.0 WIP6 - eke-eke");
|
||||
DrawText (-1, ypos += 18, (char*)"GameCube 2.0.1bx enhancements - crunchy2");
|
||||
DrawText (-1, ypos += 18, (char*)"v00x updates - michniewski & Tantric");
|
||||
DrawText (-1, ypos += 18, (char*)"GX - http://www.gc-linux.org");
|
||||
DrawText (-1, ypos += 18, (char*)"libogc - Shagkur & wintermute");
|
||||
setfontsize (16);
|
||||
|
||||
setfontsize (18);
|
||||
DrawText (-1, ypos += 30, (char*)"Testing");
|
||||
DrawText (75, ypos += 30, (char*)"Snes9x GX 00x");
|
||||
DrawText (350, ypos, (char*)"michniewski & Tantric");
|
||||
DrawText (75, ypos += 20, (char*)"Snes9X GX 2.0.1 GameCube");
|
||||
DrawText (350, ypos, (char*)"crunchy2, eke-eke, others");
|
||||
DrawText (75, ypos += 20, (char*)"Snes9x GX GameCube Port");
|
||||
DrawText (350, ypos, (char*)"SoftDev");
|
||||
DrawText (75, ypos += 20, (char*)"Snes9x 1.5.1");
|
||||
DrawText (350, ypos, (char*)"Snes9x Team");
|
||||
DrawText (75, ypos += 20, (char*)"GX");
|
||||
DrawText (350, ypos, (char*)"http://www.gc-linux.org");
|
||||
DrawText (75, ypos += 20, (char*)"libogc");
|
||||
DrawText (350, ypos, (char*)"Shagkur & wintermute");
|
||||
|
||||
setfontsize (14);
|
||||
DrawText (-1, ypos += 22, (char*)"crunchy2 / tehskeen users / others");
|
||||
setfontsize (20);
|
||||
DrawText (-1, ypos += 40, (char*)"Testing");
|
||||
|
||||
setfontsize (18);
|
||||
DrawText (-1, ypos += 30, (char*)"Documentation");
|
||||
|
||||
setfontsize (14);
|
||||
DrawText (-1, ypos += 22, (char*)"brakken, crunchy2, michniewski");
|
||||
setfontsize (16);
|
||||
DrawText (-1, ypos += 30, (char*)"TehSkeen users");
|
||||
|
||||
setfontsize (12);
|
||||
DrawText (-1, ypos += 50, (char*)"Snes9x - Copyright (c) Snes9x Team 1996 - 2006");
|
||||
DrawText (-1, ypos += 75, (char*)"Snes9x - Copyright (c) Snes9x Team 1996 - 2006");
|
||||
DrawText (-1, ypos += 15, (char*)"This software is open source and may be copied, distributed, or modified");
|
||||
DrawText (-1, ypos += 15, (char*)"under the terms of the GNU General Public License (GPL) Version 2.");
|
||||
|
||||
|
@ -158,6 +158,9 @@ preparePrefsData (int method)
|
||||
createXMLSetting("DisplayFrameRate", "Display Frame Rate", toStr(Settings.DisplayFrameRate));
|
||||
createXMLSetting("NGCZoom", "C-Stick Zoom", toStr(GCSettings.NGCZoom));
|
||||
createXMLSetting("render", "Video Filtering", toStr(GCSettings.render));
|
||||
createXMLSetting("widescreen", "Aspect Ratio Correction", toStr(GCSettings.widescreen));
|
||||
createXMLSetting("xshift", "Horizontal Video Shift", toStr(GCSettings.xshift));
|
||||
createXMLSetting("yshift", "Vertical Video Shift", toStr(GCSettings.yshift));
|
||||
|
||||
createXMLSection("Controller", "Controller Settings");
|
||||
|
||||
@ -171,7 +174,7 @@ preparePrefsData (int method)
|
||||
createXMLController(ccpadmap, "ccpadmap", "Classic Controller");
|
||||
createXMLController(ncpadmap, "ncpadmap", "Nunchuk");
|
||||
|
||||
int datasize = mxmlSaveString(xml, (char *)savebuffer, SAVEBUFFERSIZE, XMLSaveCallback);
|
||||
int datasize = mxmlSaveString(xml, (char *)savebuffer+offset, (SAVEBUFFERSIZE-offset), XMLSaveCallback);
|
||||
|
||||
mxmlDelete(xml);
|
||||
|
||||
@ -281,6 +284,9 @@ decodePrefsData (int method)
|
||||
loadXMLSetting(&Settings.DisplayFrameRate, "DisplayFrameRate");
|
||||
loadXMLSetting(&GCSettings.NGCZoom, "NGCZoom");
|
||||
loadXMLSetting(&GCSettings.render, "render");
|
||||
loadXMLSetting(&GCSettings.widescreen, "widescreen");
|
||||
loadXMLSetting(&GCSettings.xshift, "xshift");
|
||||
loadXMLSetting(&GCSettings.yshift, "yshift");
|
||||
|
||||
// Controller Settings
|
||||
|
||||
|
@ -759,8 +759,8 @@ update_video (int width, int height)
|
||||
|
||||
square[6] = square[3] = xscale + GCSettings.xshift;
|
||||
square[0] = square[9] = -xscale + GCSettings.xshift;
|
||||
square[4] = square[1] = yscale + GCSettings.yshift;
|
||||
square[7] = square[10] = -yscale + GCSettings.yshift;
|
||||
square[4] = square[1] = yscale - GCSettings.yshift;
|
||||
square[7] = square[10] = -yscale - GCSettings.yshift;
|
||||
|
||||
GX_InvVtxCache (); // update vertex cache
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user