Skip to content

Commit d614379

Browse files
committed
fix (#36): Rename setting to square pixels. Choose between 8:7 DAR and "4:3" (64:49) DAR
1 parent c72026d commit d614379

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ BSX ROMs must be patched to run without BIOS. The BSX BIOS is not currently supp
4444

4545
### Video
4646

47-
* `Use 4:3 Video` - The internal resolution of the SNES is a 8:7 aspect ratio, which is much taller than the 4:3 CRTs that were used at the time. Some games are designed to be displayed at 8:7, and others at 4:3. The `Use 4:3 Video` option is provided to switch to a 4:3 aspect ratio.
47+
* `Square Pixels` - The internal resolution of the SNES is a 8:7 pixel aspect ratio (wide pixels), which roughly corresponds to what users would see on 4:3 display aspect ratio CRTs. Some games are designed to be displayed at 8:7 PAR (the core's default), and others at 1:1 PAR (square pixels). The `Square Pixels` option is provided to switch to a 1:1 pixel aspect ratio
4848
* `Pseudo Transparency` - Enable blending of adjacent pixels, used in some games to simulate transparency
4949

5050
### Turbo

dist/Cores/agg23.SNES/core.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"description": "Super Nintendo and Super Famicom. Nintendo's second major home console",
88
"author": "agg23",
99
"url": "https://github.com/agg23/openfpga-snes",
10-
"version": "0.4.1",
10+
"version": "0.4.2",
1111
"date_release": "2022-12-10"
1212
},
1313
"framework": {

dist/Cores/agg23.SNES/interact.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"magic": "APF_VER_1",
44
"variables": [
55
{
6-
"name": "Reset core",
6+
"name": "Reset Core",
77
"id": 10,
88
"type": "action",
99
"enabled": true,
@@ -106,8 +106,8 @@
106106
}
107107
},
108108
{
109-
"name": "Use 4:3 video",
110-
"id": 40,
109+
"name": "Square Pixels",
110+
"id": 42,
111111
"type": "check",
112112
"enabled": true,
113113
"address": "0x200",

dist/Cores/agg23.SNES/video.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
{
1414
"width": 512,
1515
"height": 224,
16-
"aspect_w": 32,
17-
"aspect_h": 21,
16+
"aspect_w": 8,
17+
"aspect_h": 7,
1818
"rotation": 0,
1919
"mirror": 0
2020
},
@@ -29,8 +29,8 @@
2929
{
3030
"width": 512,
3131
"height": 240,
32-
"aspect_w": 64,
33-
"aspect_h": 45,
32+
"aspect_w": 16,
33+
"aspect_h": 15,
3434
"rotation": 0,
3535
"mirror": 0
3636
}

src/fpga/core/core_top.sv

+6-6
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ module core_top (
374374
joystick_deadzone <= bridge_wr_data[7:0];
375375
end
376376
32'h200: begin
377-
use_4_3_video <= bridge_wr_data[0];
377+
use_square_pixels <= bridge_wr_data[0];
378378
end
379379
32'h204: begin
380380
blend_enabled <= bridge_wr_data[0];
@@ -687,7 +687,7 @@ module core_top (
687687
reg [7:0] joystick_deadzone;
688688
reg mouse_enabled;
689689

690-
reg use_4_3_video = 0;
690+
reg use_square_pixels = 0;
691691
reg blend_enabled = 0;
692692

693693
// Settings sync
@@ -703,7 +703,7 @@ module core_top (
703703
wire [7:0] joystick_deadzone_s;
704704
wire mouse_enabled_s;
705705

706-
wire use_4_3_video_s;
706+
wire use_square_pixels_s;
707707
wire blend_enabled_s;
708708

709709
synch_3 #(
@@ -719,7 +719,7 @@ module core_top (
719719
dpad_aim_speed,
720720
joystick_deadzone,
721721
mouse_enabled,
722-
use_4_3_video,
722+
use_square_pixels,
723723
blend_enabled
724724
},
725725
{
@@ -732,7 +732,7 @@ module core_top (
732732
dpad_aim_speed_s,
733733
joystick_deadzone_s,
734734
mouse_enabled_s,
735-
use_4_3_video_s,
735+
use_square_pixels_s,
736736
blend_enabled_s
737737
},
738738
clk_sys_21_48
@@ -967,7 +967,7 @@ module core_top (
967967

968968
if (~de_out && prev_de) begin
969969
// Write video slot
970-
rgb <= {9'b0, ~latched_snap_index[0], use_4_3_video_s, 10'b0, 3'b0};
970+
rgb <= {9'b0, ~latched_snap_index[0], use_square_pixels_s, 10'b0, 3'b0};
971971
end else if (de_out) begin
972972
de <= 1;
973973
rgb <= rgb_out;

0 commit comments

Comments
 (0)