add widescreen & shift to preferences, update menu, update credits

This commit is contained in:
dborth 2008-09-30 06:43:34 +00:00
parent 5730ab7f94
commit cf171ce2bb
4 changed files with 42 additions and 38 deletions

View File

@ -550,10 +550,11 @@ static char videomenu[][50] = {
"Video Filtering", "Video Filtering",
"Widescreen", "Widescreen",
"X-shift ++", "Shift Video Up",
" --", "Shift Video Down",
"Y-shift ++", "Shift Video Left",
" --", "Shift Video Right",
"Shift: ", "Shift: ",
"Reset Video Shift", "Reset Video Shift",
@ -631,23 +632,20 @@ VideoOptions ()
break; break;
case 5: case 5:
// xscale UP // Move up
GCSettings.xshift++; GCSettings.yshift--;
break; break;
case 6: case 6:
// xscale DOWN // Move down
GCSettings.xshift--;
break;
case 7:
// yscale UP
GCSettings.yshift++; GCSettings.yshift++;
break; break;
case 7:
// Move left
GCSettings.xshift--;
break;
case 8: case 8:
// yscale DOWN // Move right
GCSettings.yshift--; GCSettings.xshift++;
break; break;
case 9: case 9:

View File

@ -238,32 +238,32 @@ Credits ()
else else
ypos += 32; ypos += 32;
setfontsize (18); setfontsize (20);
DrawText (-1, ypos += 30, (char*)"Technical"); DrawText (-1, ypos += 30, (char*)"Technical");
setfontsize (14); setfontsize (16);
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 (18); DrawText (75, ypos += 30, (char*)"Snes9x GX 00x");
DrawText (-1, ypos += 30, (char*)"Testing"); 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); setfontsize (20);
DrawText (-1, ypos += 22, (char*)"crunchy2 / tehskeen users / others"); DrawText (-1, ypos += 40, (char*)"Testing");
setfontsize (18); setfontsize (16);
DrawText (-1, ypos += 30, (char*)"Documentation"); DrawText (-1, ypos += 30, (char*)"TehSkeen users");
setfontsize (14);
DrawText (-1, ypos += 22, (char*)"brakken, crunchy2, michniewski");
setfontsize (12); 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*)"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."); DrawText (-1, ypos += 15, (char*)"under the terms of the GNU General Public License (GPL) Version 2.");

View File

@ -158,6 +158,9 @@ preparePrefsData (int method)
createXMLSetting("DisplayFrameRate", "Display Frame Rate", toStr(Settings.DisplayFrameRate)); createXMLSetting("DisplayFrameRate", "Display Frame Rate", toStr(Settings.DisplayFrameRate));
createXMLSetting("NGCZoom", "C-Stick Zoom", toStr(GCSettings.NGCZoom)); createXMLSetting("NGCZoom", "C-Stick Zoom", toStr(GCSettings.NGCZoom));
createXMLSetting("render", "Video Filtering", toStr(GCSettings.render)); 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"); createXMLSection("Controller", "Controller Settings");
@ -171,7 +174,7 @@ preparePrefsData (int method)
createXMLController(ccpadmap, "ccpadmap", "Classic Controller"); createXMLController(ccpadmap, "ccpadmap", "Classic Controller");
createXMLController(ncpadmap, "ncpadmap", "Nunchuk"); createXMLController(ncpadmap, "ncpadmap", "Nunchuk");
int datasize = mxmlSaveString(xml, (char *)savebuffer, SAVEBUFFERSIZE, XMLSaveCallback); int datasize = mxmlSaveString(xml, (char *)savebuffer+offset, (SAVEBUFFERSIZE-offset), XMLSaveCallback);
mxmlDelete(xml); mxmlDelete(xml);
@ -281,6 +284,9 @@ decodePrefsData (int method)
loadXMLSetting(&Settings.DisplayFrameRate, "DisplayFrameRate"); loadXMLSetting(&Settings.DisplayFrameRate, "DisplayFrameRate");
loadXMLSetting(&GCSettings.NGCZoom, "NGCZoom"); loadXMLSetting(&GCSettings.NGCZoom, "NGCZoom");
loadXMLSetting(&GCSettings.render, "render"); loadXMLSetting(&GCSettings.render, "render");
loadXMLSetting(&GCSettings.widescreen, "widescreen");
loadXMLSetting(&GCSettings.xshift, "xshift");
loadXMLSetting(&GCSettings.yshift, "yshift");
// Controller Settings // Controller Settings

View File

@ -759,8 +759,8 @@ update_video (int width, int height)
square[6] = square[3] = xscale + GCSettings.xshift; square[6] = square[3] = xscale + GCSettings.xshift;
square[0] = square[9] = -xscale + GCSettings.xshift; square[0] = square[9] = -xscale + GCSettings.xshift;
square[4] = square[1] = yscale + GCSettings.yshift; square[4] = square[1] = yscale - GCSettings.yshift;
square[7] = square[10] = -yscale + GCSettings.yshift; square[7] = square[10] = -yscale - GCSettings.yshift;
GX_InvVtxCache (); // update vertex cache GX_InvVtxCache (); // update vertex cache