Skip to content
This repository was archived by the owner on Apr 25, 2026. It is now read-only.

Commit 4655afb

Browse files
committed
[PicoArch] Moved previous patch and added one that fixes Scaled mode (SNES 8:7 among others)
1 parent d571ef9 commit 4655afb

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

FunKey/board/funkey/patches/picoarch/0005-fix-case-sensitive-sorting.patch renamed to FunKey/package/picoarch/0003-fix-case-sensitive-sorting.patch

File renamed without changes.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
diff --git a/scale.c b/scale.c
2+
index 5857589..de3c37f 100644
3+
--- a/scale.c
4+
+++ b/scale.c
5+
@@ -423,7 +423,14 @@ static void scale_select_scaler(unsigned w, unsigned h, size_t pitch) {
6+
return;
7+
};
8+
9+
- current_aspect_ratio = aspect_ratio > 0 ? aspect_ratio : ((double)w / (double)h);
10+
+ if ((w == 256 && h == 224) || (w == 512 && h == 448)) {
11+
+ current_aspect_ratio = 8.0 / 7.0;
12+
+ } else if (w == 256 && h == 240) {
13+
+ current_aspect_ratio = 16.0 / 15.0;
14+
+ } else {
15+
+ current_aspect_ratio = aspect_ratio > 0 ? aspect_ratio : ((double)w / (double)h);
16+
+ }
17+
+
18+
19+
/* mame2000 sets resolutions / aspect ratio without notifying
20+
* of changes, new should always override old */

0 commit comments

Comments
 (0)