Skip to content

Commit

Permalink
Aspect ratio option
Browse files Browse the repository at this point in the history
* Add aspect ratio option to in-game menu: Full Screen, Best Fit (4:3 NTSC display). Option isn't saved to config.
* Fix screen size (639 -> 640, height - 1 -> height).
* Interlacing is on by default.
  • Loading branch information
infval committed Apr 16, 2018
1 parent cc821af commit 82caf6b
Show file tree
Hide file tree
Showing 6 changed files with 197 additions and 174 deletions.
12 changes: 6 additions & 6 deletions src/drivers/ps2/browser.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ int listcdvd(const char *path, entries *FileEntry) {
if (TocEntryList[i].fileProperties & 0x02 && (!strcmp(
TocEntryList[i].filename, ".") || !strcmp(
TocEntryList[i].filename, "..")))
continue; //Skip pseudopaths "." and ".."
continue; // Skip pseudopaths "." and ".."

FileEntry[t].dircheck = 0;
strcpy(FileEntry[t].filename, TocEntryList[i].filename);
Expand Down Expand Up @@ -283,7 +283,7 @@ int listpfs(char *path, entries *FileEntry, int files_too)
int dd, n = 0;
iox_dirent_t buf;

if (!(strchr(path, '/'))) { //if path is not valid then load default device menu
if (!(strchr(path, '/'))) { // If path is not valid then load default device menu
strcpy(FileEntry[0].displayname, "mc0:");
strcpy(FileEntry[1].displayname, "mc1:");
strcpy(FileEntry[2].displayname, "mass:");
Expand All @@ -293,7 +293,7 @@ int listpfs(char *path, entries *FileEntry, int files_too)
strcpy(FileEntry[1].filename, "mc1:/");
strcpy(FileEntry[2].filename, "mass:/");
strcpy(FileEntry[3].filename, "hdd0:/");
strcpy(FileEntry[4].filename, "cdfs:");
strcpy(FileEntry[4].filename, "cdfs:/");
FileEntry[0].dircheck = 1;
FileEntry[1].dircheck = 1;
FileEntry[2].dircheck = 1;
Expand Down Expand Up @@ -572,7 +572,7 @@ char* Browser(int files_too, int menu_id)
else {
strcpy(path, browseup(path));
}
if (h != 0 )
if (h != 0)
h = h - 1;
selection = history[h];
oldselect = selection + 1;
Expand Down Expand Up @@ -625,7 +625,7 @@ char* Browser(int files_too, int menu_id)
if (selection != oldselect) {

gsKit_clear(gsGlobal, GS_SETREG_RGBAQ(0x00, 0x00, 0x00, 0x80, 0x00));
browser_primitive("FCEUltra PS2 B0.93 [x.2.2]", "Browser", &BG_TEX, menu_x1, menu_y1, menu_x2, menu_y2);
browser_primitive("FCEUltra PS2 B0.93 [x.2.3]", "Browser", &BG_TEX, menu_x1, menu_y1, menu_x2, menu_y2);

if (selection > max_item) {
list_offset = text_line - (selection - max_item) * FONT_HEIGHT;
Expand Down Expand Up @@ -681,7 +681,7 @@ char* Browser(int files_too, int menu_id)
else {
strcpy(path, browseup(path));
}
if (h != 0 )
if (h != 0)
h = h - 1;
selection = history[h];
oldselect = selection + 1;
Expand Down
Loading

0 comments on commit 82caf6b

Please sign in to comment.