mirror of
https://github.com/clockworkpi/DevTerm.git
synced 2025-12-14 03:08:50 +01:00
code fix
This commit is contained in:
parent
24f1649b90
commit
c1215b0f1d
@ -1,6 +1,9 @@
|
|||||||
#ifndef CONFIG_H
|
#ifndef CONFIG_H
|
||||||
#define CONFIG_H
|
#define CONFIG_H
|
||||||
|
|
||||||
|
#include <freetype2/ft2build.h>
|
||||||
|
#include <freetype/freetype.h>
|
||||||
|
|
||||||
///raspberry pi CM3
|
///raspberry pi CM3
|
||||||
|
|
||||||
#define BCM_GPIO_28 28
|
#define BCM_GPIO_28 28
|
||||||
|
|||||||
@ -432,9 +432,11 @@ uint8_t print_lines_ft(CONFIG*cfg) {
|
|||||||
|
|
||||||
uint8_t lastidx,lastw,lastj;
|
uint8_t lastidx,lastw,lastj;
|
||||||
uint8_t row;
|
uint8_t row;
|
||||||
|
uint16_t line_bits;
|
||||||
|
|
||||||
int8_t left = ser_cache.idx;
|
int8_t left = ser_cache.idx;
|
||||||
|
uint8_t rv;
|
||||||
|
|
||||||
line_bits=cfg->margin.width;
|
line_bits=cfg->margin.width;
|
||||||
dot_line_idx = line_bits/8;
|
dot_line_idx = line_bits/8;
|
||||||
dot_line_bitsidx = line_bits%8;
|
dot_line_bitsidx = line_bits%8;
|
||||||
@ -475,7 +477,7 @@ uint8_t print_lines_ft(CONFIG*cfg) {
|
|||||||
if(w > 0 && (w%8) == 0) j++;
|
if(w > 0 && (w%8) == 0) j++;
|
||||||
if(dot_line_bitsidx > 7 ){
|
if(dot_line_bitsidx > 7 ){
|
||||||
dot_line_idx++;
|
dot_line_idx++;
|
||||||
dot_line_bitxidx=0;
|
dot_line_bitsidx=0;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned char p =
|
unsigned char p =
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user