Skip to content

Commit bea464d

Browse files
committed
fMSX video is almost right
Signed-off-by: Joseph Mattiello <git@joemattiello.com>
1 parent b0f22e1 commit bea464d

File tree

1 file changed

+23
-18
lines changed

1 file changed

+23
-18
lines changed

Cores/fmsx/PVfMSXCore/PVfMSXCoreBridge.mm

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -155,25 +155,30 @@ - (BOOL)loadFileAtPath:(NSString *)path error:(NSError**)error {
155155
// return info.timing.fps ?: 60;
156156
//}
157157

158-
//- (CGSize)aspectSize {
159-
// return CGSizeMake(4, 3);
160-
//}
161-
//
162-
//- (CGSize)bufferSize {
163-
// return CGSizeMake(272, 228);
164-
//}
158+
- (CGRect)screenRect {
159+
return CGRectMake(0, 0, 272, 240);
160+
}
161+
162+
- (CGSize)aspectSize {
163+
return CGSizeMake(4, 3);
164+
}
165+
166+
- (CGSize)bufferSize {
167+
return CGSizeMake(272, 240);
168+
}
169+
170+
- (GLenum)pixelFormat {
171+
return GL_RGB565;
172+
}
173+
174+
- (GLenum)pixelType {
175+
return GL_UNSIGNED_SHORT_5_6_5;
176+
}
177+
178+
- (GLenum)internalPixelFormat {
179+
return GL_RGB565;
180+
}
165181

166-
//- (GLenum)pixelFormat {
167-
// return GL_BGRA;
168-
//}
169-
//
170-
//- (GLenum)pixelType {
171-
// return GL_UNSIGNED_BYTE;
172-
//}
173-
//
174-
//- (GLenum)internalPixelFormat {
175-
// return GL_RGBA;
176-
//}
177182
# pragma mark - Audio
178183

179184
//- (double)audioSampleRate {

0 commit comments

Comments
 (0)