6 #include "endianness.h"
10 #include "fonts/font.h"
11 #include "console_sel.h"
12 #include "console_events.h"
17 #ifdef IS_LITTLE_ENDIAN
32 #define SRGB(R,G,B) ((sdl_rgb_t) {.colors.r = R, .colors.g = G, .colors.b = B, .colors.a = 0})
33 #define SRGB_INIT(x,y,z) ({.colors.r = R, .colors.g = G, .colors.b = B, .colors.a = 0})
34 #define SRGB3(X) SRGB(X)
38 #define SRGB_BLACK SRGB3(BLACK)
39 #define SRGB_WHITE SRGB3(WHITE)
40 #define SRGB_RED SRGB3(RED)
41 #define SRGB_GREEN SRGB3(GREEN)
42 #define SRGB_GREEN2 SRGB3(GREEN2)
43 #define SRGB_BLUE SRGB3(BLUE)
44 #define SRGB_YELLOW SRGB3(YELLOW)
46 #define SRGB_BLUE_NICE SRGB3(BLUE_NICE)
47 #define SRGB_GRAY_LIGHT SRGB3(GRAY_LIGHT)
48 #define SRGB_GRAY_DARK SRGB3(GRAY_DARK)
50 #define SRGB_NORTON_UTILITIES_VIOLET SRGB3(NORTON_UTILITIES_VIOLET)
51 #define SRGB_ORANGE SRGB3(ORANGE)
59 typedef struct SDLConsole
{
73 #if CONSOLE_BACKEND == SDL_CONSOLE
75 #pragma RcB2 LINK "-lSDL"
77 #pragma RcB2 LINK "-lSDL2"
79 #pragma RcB2 DEP "sdlconsole.c"