mirror of
https://github.com/Pecusx/libretro-atari800.git
synced 2026-05-20 22:33:22 +02:00
minor error
Still testing opacity
This commit is contained in:
@@ -58,20 +58,20 @@ extern int pauseg;
|
|||||||
|
|
||||||
#ifndef RENDER16B
|
#ifndef RENDER16B
|
||||||
#define RGB565(r, g, b) (((r) << (5+16)) | ((g) << (5+8)) | (b<<5))
|
#define RGB565(r, g, b) (((r) << (5+16)) | ((g) << (5+8)) | (b<<5))
|
||||||
#define R_RGB(rgb) (((rgb) >> (5+16)) & 255)
|
#define R_RGB565(rgb) (((rgb) >> (5+16)) & 255)
|
||||||
#define G_RGB(rgb) (((rgb) >> (5+8)) & 255)
|
#define G_RGB565(rgb) (((rgb) >> (5+8)) & 255)
|
||||||
#define B_RGB(rgb) ((rgb>>5) & 255)
|
#define B_RGB565(rgb) ((rgb>>5) & 255)
|
||||||
#else
|
#else
|
||||||
#if defined(ABGR1555)
|
#if defined(ABGR1555)
|
||||||
#define RGB565(r, g, b) (((b) << (10)) | ((g) << 5) | (r))
|
#define RGB565(r, g, b) (((b) << (10)) | ((g) << 5) | (r))
|
||||||
#define B_RGB(rgb) (((rgb) >> (10)) & 31)
|
#define B_RGB565(rgb) (((rgb) >> (10)) & 31)
|
||||||
#define G_RGB(rgb) (((rgb) >> 5) & 31)
|
#define G_RGB565(rgb) (((rgb) >> 5) & 31)
|
||||||
#define R_RGB(rgb) (rgb & 31)
|
#define R_RGB565(rgb) (rgb & 31)
|
||||||
#else
|
#else
|
||||||
#define RGB565(r, g, b) (((r) << (5+6)) | ((g) << 6) | (b))
|
#define RGB565(r, g, b) (((r) << (5+6)) | ((g) << 6) | (b))
|
||||||
#define R_RGB(rgb) (((rgb) >> (5+6)) & 31)
|
#define R_RGB565(rgb) (((rgb) >> (5+6)) & 31)
|
||||||
#define G_RGB(rgb) (((rgb) >> 6) & 31)
|
#define G_RGB565(rgb) (((rgb) >> 6) & 31)
|
||||||
#define B_RGB(rgb) (rgb & 31)
|
#define B_RGB565(rgb) (rgb & 31)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#define uint32 unsigned int
|
#define uint32 unsigned int
|
||||||
|
|||||||
Reference in New Issue
Block a user