Skip to content

Commit

Permalink
rend: add hcount and vcount used by meltyb for video shift calc
Browse files Browse the repository at this point in the history
meltyb (and possibly others) uses hcount=850 (instead of 851) and
vcount=528 (instead of 529)
  • Loading branch information
flyinghead committed Oct 22, 2023
1 parent 33edcca commit 35c71eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/rend/transform_matrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ inline static void getVideoShift(float& x, float& y)
x = VO_STARTX.HStart - 0xae;
break;
case 851: // Naomi
case 850: // meltyb
x = VO_STARTX.HStart - 0xa5; // a0 for 15 kHz
break;
default:
Expand All @@ -318,6 +319,7 @@ inline static void getVideoShift(float& x, float& y)
y = VO_STARTY.VStart_field1 - 0x2e;
break;
case 529: // Naomi 31 kHz
case 528: // meltyb
y = VO_STARTY.VStart_field1 - 0x24;
break;
case 536: // Naomi 15 kHz 480i
Expand Down

0 comments on commit 35c71eb

Please sign in to comment.