Skip to content

Commit

Permalink
fMSX video is almost right
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Mattiello <[email protected]>
  • Loading branch information
JoeMatt committed Dec 31, 2024
1 parent b0f22e1 commit bea464d
Showing 1 changed file with 23 additions and 18 deletions.
41 changes: 23 additions & 18 deletions Cores/fmsx/PVfMSXCore/PVfMSXCoreBridge.mm
Original file line number Diff line number Diff line change
Expand Up @@ -155,25 +155,30 @@ - (BOOL)loadFileAtPath:(NSString *)path error:(NSError**)error {
// return info.timing.fps ?: 60;
//}

//- (CGSize)aspectSize {
// return CGSizeMake(4, 3);
//}
//
//- (CGSize)bufferSize {
// return CGSizeMake(272, 228);
//}
- (CGRect)screenRect {
return CGRectMake(0, 0, 272, 240);
}

- (CGSize)aspectSize {
return CGSizeMake(4, 3);
}

- (CGSize)bufferSize {
return CGSizeMake(272, 240);
}

- (GLenum)pixelFormat {
return GL_RGB565;
}

- (GLenum)pixelType {
return GL_UNSIGNED_SHORT_5_6_5;
}

- (GLenum)internalPixelFormat {
return GL_RGB565;
}

//- (GLenum)pixelFormat {
// return GL_BGRA;
//}
//
//- (GLenum)pixelType {
// return GL_UNSIGNED_BYTE;
//}
//
//- (GLenum)internalPixelFormat {
// return GL_RGBA;
//}
# pragma mark - Audio

//- (double)audioSampleRate {
Expand Down

0 comments on commit bea464d

Please sign in to comment.