Skip to content

Commit

Permalink
Use Mednafen-provided aspect values for all systems.
Browse files Browse the repository at this point in the history
Don't recall why the handhelds were left hardcoded.
  • Loading branch information
clobber committed Nov 13, 2020
1 parent 0054483 commit 0f2cccb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions MednafenGameCore.mm
Original file line number Diff line number Diff line change
Expand Up @@ -3141,14 +3141,14 @@ - (BOOL)loadFileAtPath:(NSString *)path error:(NSError **)error

if([_mednafenCoreModule isEqualToString:@"lynx"])
{
_mednafenCoreAspect = OEIntSizeMake(80, 51);
//_mednafenCoreAspect = OEIntSizeMake(game->nominal_width, game->nominal_height);
//_mednafenCoreAspect = OEIntSizeMake(80, 51);
_mednafenCoreAspect = OEIntSizeMake(game->nominal_width, game->nominal_height);
_sampleRate = 48000;
}
else if([_mednafenCoreModule isEqualToString:@"ngp"])
{
_mednafenCoreAspect = OEIntSizeMake(20, 19);
//_mednafenCoreAspect = OEIntSizeMake(game->nominal_width, game->nominal_height);
//_mednafenCoreAspect = OEIntSizeMake(20, 19);
_mednafenCoreAspect = OEIntSizeMake(game->nominal_width, game->nominal_height);
_sampleRate = 48000;
}
else if([_mednafenCoreModule isEqualToString:@"pce"])
Expand All @@ -3174,14 +3174,14 @@ - (BOOL)loadFileAtPath:(NSString *)path error:(NSError **)error
}
else if([_mednafenCoreModule isEqualToString:@"vb"])
{
_mednafenCoreAspect = OEIntSizeMake(12, 7);
//_mednafenCoreAspect = OEIntSizeMake(game->nominal_width, game->nominal_height);
//_mednafenCoreAspect = OEIntSizeMake(12, 7);
_mednafenCoreAspect = OEIntSizeMake(game->nominal_width, game->nominal_height);
_sampleRate = 48000;
}
else if([_mednafenCoreModule isEqualToString:@"wswan"])
{
_mednafenCoreAspect = OEIntSizeMake(14, 9);
//_mednafenCoreAspect = OEIntSizeMake(game->nominal_width, game->nominal_height);
//_mednafenCoreAspect = OEIntSizeMake(14, 9);
_mednafenCoreAspect = OEIntSizeMake(game->nominal_width, game->nominal_height);
_sampleRate = 48000;
}

Expand Down

0 comments on commit 0f2cccb

Please sign in to comment.