Skip to content

Commit

Permalink
UTF16 control chars defines
Browse files Browse the repository at this point in the history
  • Loading branch information
Azq2 committed Dec 5, 2023
1 parent 1588f4e commit 56232ae
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion include/swilib.h
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,37 @@ struct GUI
#define LINE_DOTTED 1
#define LINE_DOTTED2 2

//Fonts
// Fonts

#define UTF16_UNDERLINE 0xE001 // TEXT_UNDERLINE
#define UTF16_NO_UNDERLINE 0xE002

#define UTF16_BG_INVERTION 0xE003 // TEXT_INVERT
#define UTF16_BG_INVERTION2 0xE005 // TEXT_INVERT2
#define UTF16_NO_INVERTION 0xE004

#define UTF16_TEXT_COLOR_RGBA 0xE006 // Example: { UTF16_TEXT_COLOR_RGBA, 0xRRGG, 0xBBAA }
#define UTF16_BG_COLOR_RGBA 0xE007 // Example: { UTF16_BG_COLOR_RGBA, 0xRRGG, 0xBBAA }

#define UTF16_TEXT_COLOR 0xE008 // Example: { UTF16_TEXT_COLOR, PC_FOREGROUND }
#define UTF16_BG_COLOR 0xE009 // Example: { UTF16_BG_COLOR, PC_BACKGROUND }

#define UTF16_FONT_RESET 0xE010 // Reset font to default

#define UTF16_FONT_SMALL 0xE012 // FONT_SMALL
#define UTF16_FONT_SMALL_BOLD 0xE013 // FONT_SMALL_BOLD

#define UTF16_FONT_MEDIUM 0xE014 // FONT_MEDIUM
#define UTF16_FONT_MEDIUM_BOLD 0xE015 // FONT_MEDIUM_BOLD

#define UTF16_FONT_LARGE_BOLD 0xE017 // FONT_LARGE_BOLD
#define UTF16_FONT_LARGE 0xE018 // FONT_LARGE

#define UTF16_FONT_UNK0 0xE011 // FONT_SMALL
#define UTF16_FONT_UNK1 0xE016 // FONT_LARGE_BOLD
#define UTF16_FONT_UNK2 0xE019 // FONT_SMALL
#define UTF16_FONT_UNK3 0xE01A // FONT_SMALL_BOLD
#define UTF16_FONT_UNK4 0xE01B // FONT_SMALL

#ifdef NEWSGOLD

Expand Down Expand Up @@ -750,6 +780,13 @@ typedef struct
unsigned char *bitmap;
}IMGHDR;

enum {
IMGHDR_TYPE_WB = 1,
IMGHDR_TYPE_RGB332 = 5,
IMGHDR_TYPE_RGB565 = 8,
IMGHDR_TYPE_RGB8888 = 10
};

typedef struct
{
RECT rc;
Expand Down

0 comments on commit 56232ae

Please sign in to comment.