mirror of
https://github.com/clockworkpi/DevTerm.git
synced 2025-12-13 02:38:50 +01:00
add ENABLE_VH in print_lines_ft
This commit is contained in:
parent
167b2f520e
commit
c30acbcec5
@ -126,7 +126,7 @@ void init_printer() {
|
||||
}
|
||||
}
|
||||
|
||||
//default still FONT_MODE_0
|
||||
//default still FONT_MODE_0, comment out below 4 lines to enable unicode printing
|
||||
current_font.mode = FONT_MODE_0;
|
||||
current_font.width = 8;
|
||||
current_font.height = 16;
|
||||
|
||||
@ -454,7 +454,7 @@ uint8_t print_lines_ft(CONFIG *cfg,int lines,int bf) {
|
||||
abs(cfg->face->descender) * current_font.height / cfg->face->units_per_EM;
|
||||
int dpx = 64;
|
||||
FT_Matrix matrix;
|
||||
|
||||
ENABLE_VH;
|
||||
while (left > 0) {
|
||||
i = lastidx;
|
||||
row_cnt = 0;
|
||||
@ -593,6 +593,8 @@ uint8_t print_lines_ft(CONFIG *cfg,int lines,int bf) {
|
||||
}
|
||||
*/
|
||||
}
|
||||
DISABLE_VH;
|
||||
|
||||
}
|
||||
|
||||
uint8_t print_lines8(CONFIG *cfg,int lines,int backforward) {
|
||||
@ -604,8 +606,9 @@ uint8_t print_lines8(CONFIG *cfg,int lines,int backforward) {
|
||||
DISABLE_VH;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
if (cfg->font->mode == FONT_MODE_1 && cfg->face!=NULL) {
|
||||
|
||||
return print_lines_ft(cfg,0,0);
|
||||
}
|
||||
uint8_t i, j, k;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user