Skip to content

Commit

Permalink
stella fix graphics
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Mattiello <[email protected]>
  • Loading branch information
JoeMatt committed Oct 24, 2024
1 parent bfdb900 commit 4236165
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cores/Stella/Sources/PVStellaBridge/PVStellaBridge.mm
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ - (instancetype)initWithOptionHandler:(PVStellaBridgeOptionHandler)optionHandler
#pragma mark - Exectuion

- (void)resetEmulation {
[super resetEmulation];
// [super resetEmulation];
retro_reset();
}

Expand Down
7 changes: 1 addition & 6 deletions Cores/Stella/Sources/PVStellaCPP/PVStellaCPP.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,10 @@ typedef uint32_t stellabuffer_t;
// OpenGL for some reason is blank
// TODO: See what the metal format is calculated as
#define STELLA_PITCH_SHIFT 2
#define STELLA_PIXEL_TYPE GL_UNSIGNED_BYTE

#if TARGET_OS_MACCATALYST
#define STELLA_PIXEL_FORMAT GL_UNSIGNED_SHORT_5_6_5
#define STELLA_INTERNAL_FORMAT GL_UNSIGNED_SHORT_5_6_5
#else
#define STELLA_PIXEL_TYPE GL_UNSIGNED_BYTE
#define STELLA_PIXEL_FORMAT GL_BGRA
#define STELLA_INTERNAL_FORMAT GL_BGRA
#endif

#define STELLA_WIDTH 160
#define STELLA_HEIGHT 256
Expand Down

0 comments on commit 4236165

Please sign in to comment.