mirror of https://github.com/stella-emu/stella.git
Revert palette to use ARGB8888, which allows the snapshot and libretro
code to work without any further changes.
This commit is contained in:
parent
c73637bc3d
commit
d2cb9d3011
|
@ -47,7 +47,7 @@ FBBackendSDL::FBBackendSDL(OSystem& osystem)
|
|||
// It's done this way (vs directly accessing a FBSurfaceSDL object)
|
||||
// since the structure may be needed before any FBSurface's have
|
||||
// been created
|
||||
myPixelFormat = SDL_GetPixelFormatDetails(SDL_PIXELFORMAT_RGBA32);
|
||||
myPixelFormat = SDL_GetPixelFormatDetails(SDL_PIXELFORMAT_ARGB8888);
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
@ -588,7 +588,7 @@ void FBBackendSDL::setWindowIcon()
|
|||
ASSERT_MAIN_THREAD;
|
||||
|
||||
SDL_Surface* surface =
|
||||
SDL_CreateSurfaceFrom(32, 32, SDL_PIXELFORMAT_RGBA32, stella_icon, 32 * 4);
|
||||
SDL_CreateSurfaceFrom(32, 32, pixelFormat().format, stella_icon, 32 * 4);
|
||||
SDL_SetWindowIcon(myWindow, surface);
|
||||
SDL_DestroySurface(surface);
|
||||
#endif
|
||||
|
|
|
@ -212,13 +212,13 @@ class AtariNTSC
|
|||
}
|
||||
|
||||
// Generates output in the specified 32-bit format.
|
||||
// 8888: 00000000 BBBBBBBB GGGGGGGG RRRRRRRR (8-8-8-8 32-bit ABGR)
|
||||
// 8888: 00000000 RRRRRRRR GGGGGGGG BBBBBBBB (8-8-8-8 32-bit ARGB)
|
||||
#define ATARI_NTSC_RGB_OUT_8888( index, rgb_out ) {\
|
||||
uInt32 raw_ =\
|
||||
kernel0 [(index) ] + kernel1 [((index)+10)%7+14] +\
|
||||
kernelx0 [((index)+7)%14] + kernelx1 [((index)+ 3)%7+14+7];\
|
||||
ATARI_NTSC_CLAMP( raw_, 0 );\
|
||||
(rgb_out) = (raw_>>21 & 0x000000FF)|(raw_>>3 & 0x0000FF00)|(raw_<<15 & 0x00FF0000);\
|
||||
(rgb_out) = (raw_>>5 & 0x00FF0000)|(raw_>>3 & 0x0000FF00)|(raw_>>1 & 0x000000FF);\
|
||||
}
|
||||
|
||||
// Common ntsc macros
|
||||
|
|
Loading…
Reference in New Issue