Skip to content

Commit

Permalink
Resync w/ FBInk 1.21.0
Browse files Browse the repository at this point in the history
  • Loading branch information
NiLuJe committed Feb 2, 2020
1 parent 63ddc21 commit a467e79
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions ffi/fbink_h.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ typedef enum {
CENTER = 1,
EDGE = 2,
} ALIGN_INDEX_T;
typedef enum {
NO_PADDING = 0,
HORI_PADDING = 1,
VERT_PADDING = 2,
FULL_PADDING = 3,
} PADDING_INDEX_T;
typedef enum {
FG_BLACK = 0,
FG_GRAY1 = 1,
Expand Down Expand Up @@ -97,13 +103,16 @@ typedef enum {
WFM_GCK16 = 13,
WFM_GLKW16 = 14,
WFM_INIT = 15,
WFM_UNKNOWN = 16,
WFM_INIT2 = 17,
} WFM_MODE_INDEX_T;
typedef enum {
HWD_PASSTHROUGH = 0,
HWD_FLOYD_STEINBERG = 1,
HWD_ATKINSON = 2,
HWD_ORDERED = 3,
HWD_QUANT_ONLY = 4,
HWD_LEGACY = 255,
} HW_DITHER_INDEX_T;
typedef enum {
NTX_ROTA_STRAIGHT = 0,
Expand Down Expand Up @@ -172,7 +181,7 @@ typedef struct {
short int scaled_width;
short int scaled_height;
uint8_t wfm_mode;
bool is_dithered;
uint8_t dithering_mode;
bool sw_dithering;
bool is_nightmode;
bool no_refresh;
Expand All @@ -188,6 +197,7 @@ typedef struct {
float size_pt;
short unsigned int size_px;
bool is_centered;
uint8_t padding;
bool is_formatted;
bool compute_only;
bool no_truncation;
Expand Down Expand Up @@ -223,7 +233,7 @@ int fbink_add_ot_font(const char *, FONT_STYLE_T);
int fbink_free_ot_fonts(void);
int fbink_print_ot(int, const char *restrict, const FBInkOTConfig *restrict, const FBInkConfig *restrict, FBInkOTFit *restrict);
int fbink_printf(int, const FBInkOTConfig *restrict, const FBInkConfig *restrict, const char *, ...);
int fbink_refresh(int, uint32_t, uint32_t, uint32_t, uint32_t, uint8_t, const FBInkConfig *restrict);
int fbink_refresh(int, uint32_t, uint32_t, uint32_t, uint32_t, const FBInkConfig *restrict);
int fbink_wait_for_submission(int, uint32_t);
int fbink_wait_for_complete(int, uint32_t);
uint32_t fbink_get_last_marker(void);
Expand All @@ -232,7 +242,7 @@ int fbink_print_progress_bar(int, uint8_t, const FBInkConfig *restrict);
int fbink_print_activity_bar(int, uint8_t, const FBInkConfig *restrict);
int fbink_print_image(int, const char *, short int, short int, const FBInkConfig *restrict);
int fbink_print_raw_data(int, unsigned char *, const int, const int, const size_t, short int, short int, const FBInkConfig *restrict);
int fbink_cls(int, const FBInkConfig *restrict);
int fbink_cls(int, const FBInkConfig *restrict, const FBInkRect *restrict);
int fbink_dump(int, FBInkDump *restrict);
int fbink_region_dump(int, short int, short int, short unsigned int, short unsigned int, const FBInkConfig *restrict, FBInkDump *restrict);
int fbink_restore(int, const FBInkConfig *restrict, const FBInkDump *restrict);
Expand Down

0 comments on commit a467e79

Please sign in to comment.