@@ -44,6 +44,12 @@ typedef enum {
44
44
CENTER = 1 ,
45
45
EDGE = 2 ,
46
46
} ALIGN_INDEX_T;
47
+ typedef enum {
48
+ NO_PADDING = 0 ,
49
+ HORI_PADDING = 1 ,
50
+ VERT_PADDING = 2 ,
51
+ FULL_PADDING = 3 ,
52
+ } PADDING_INDEX_T;
47
53
typedef enum {
48
54
FG_BLACK = 0 ,
49
55
FG_GRAY1 = 1 ,
@@ -97,13 +103,16 @@ typedef enum {
97
103
WFM_GCK16 = 13 ,
98
104
WFM_GLKW16 = 14 ,
99
105
WFM_INIT = 15 ,
106
+ WFM_UNKNOWN = 16 ,
107
+ WFM_INIT2 = 17 ,
100
108
} WFM_MODE_INDEX_T;
101
109
typedef enum {
102
110
HWD_PASSTHROUGH = 0 ,
103
111
HWD_FLOYD_STEINBERG = 1 ,
104
112
HWD_ATKINSON = 2 ,
105
113
HWD_ORDERED = 3 ,
106
114
HWD_QUANT_ONLY = 4 ,
115
+ HWD_LEGACY = 255 ,
107
116
} HW_DITHER_INDEX_T;
108
117
typedef enum {
109
118
NTX_ROTA_STRAIGHT = 0 ,
@@ -172,7 +181,7 @@ typedef struct {
172
181
short int scaled_width ;
173
182
short int scaled_height ;
174
183
uint8_t wfm_mode ;
175
- bool is_dithered ;
184
+ uint8_t dithering_mode ;
176
185
bool sw_dithering ;
177
186
bool is_nightmode ;
178
187
bool no_refresh ;
@@ -188,6 +197,7 @@ typedef struct {
188
197
float size_pt ;
189
198
short unsigned int size_px ;
190
199
bool is_centered ;
200
+ uint8_t padding ;
191
201
bool is_formatted ;
192
202
bool compute_only ;
193
203
bool no_truncation ;
@@ -223,7 +233,7 @@ int fbink_add_ot_font(const char *, FONT_STYLE_T);
223
233
int fbink_free_ot_fonts (void );
224
234
int fbink_print_ot (int , const char * restrict , const FBInkOTConfig * restrict , const FBInkConfig * restrict , FBInkOTFit * restrict );
225
235
int fbink_printf (int , const FBInkOTConfig * restrict , const FBInkConfig * restrict , const char * , ... );
226
- int fbink_refresh (int , uint32_t , uint32_t , uint32_t , uint32_t , uint8_t , const FBInkConfig * restrict );
236
+ int fbink_refresh (int , uint32_t , uint32_t , uint32_t , uint32_t , const FBInkConfig * restrict );
227
237
int fbink_wait_for_submission (int , uint32_t );
228
238
int fbink_wait_for_complete (int , uint32_t );
229
239
uint32_t fbink_get_last_marker (void );
@@ -232,7 +242,7 @@ int fbink_print_progress_bar(int, uint8_t, const FBInkConfig *restrict);
232
242
int fbink_print_activity_bar (int , uint8_t , const FBInkConfig * restrict );
233
243
int fbink_print_image (int , const char * , short int , short int , const FBInkConfig * restrict );
234
244
int fbink_print_raw_data (int , unsigned char * , const int , const int , const size_t , short int , short int , const FBInkConfig * restrict );
235
- int fbink_cls (int , const FBInkConfig * restrict );
245
+ int fbink_cls (int , const FBInkConfig * restrict , const FBInkRect * restrict );
236
246
int fbink_dump (int , FBInkDump * restrict );
237
247
int fbink_region_dump (int , short int , short int , short unsigned int , short unsigned int , const FBInkConfig * restrict , FBInkDump * restrict );
238
248
int fbink_restore (int , const FBInkConfig * restrict , const FBInkDump * restrict );
0 commit comments