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.mode = FONT_MODE_0;
|
||||||
current_font.width = 8;
|
current_font.width = 8;
|
||||||
current_font.height = 16;
|
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;
|
abs(cfg->face->descender) * current_font.height / cfg->face->units_per_EM;
|
||||||
int dpx = 64;
|
int dpx = 64;
|
||||||
FT_Matrix matrix;
|
FT_Matrix matrix;
|
||||||
|
ENABLE_VH;
|
||||||
while (left > 0) {
|
while (left > 0) {
|
||||||
i = lastidx;
|
i = lastidx;
|
||||||
row_cnt = 0;
|
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) {
|
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;
|
DISABLE_VH;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cfg->font->mode == FONT_MODE_1 && cfg->face!=NULL) {
|
if (cfg->font->mode == FONT_MODE_1 && cfg->face!=NULL) {
|
||||||
|
|
||||||
return print_lines_ft(cfg,0,0);
|
return print_lines_ft(cfg,0,0);
|
||||||
}
|
}
|
||||||
uint8_t i, j, k;
|
uint8_t i, j, k;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user