Chars [ and ] use now one less pixel in weight
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 638 B After Width: | Height: | Size: 685 B |
+4
-11
@@ -355,7 +355,9 @@ void lcd_putsnAtt(xcoord_t x, uint8_t y, const pm_char * s, uint8_t len, LcdFlag
|
|||||||
x = c;
|
x = c;
|
||||||
setx = false;
|
setx = false;
|
||||||
}
|
}
|
||||||
else if (!c || x>LCD_W-6) break;
|
else if (!c) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
else if (c >= 0x20) {
|
else if (c >= 0x20) {
|
||||||
lcd_putcAtt(x, y, c, mode);
|
lcd_putcAtt(x, y, c, mode);
|
||||||
x = lcdNextPos;
|
x = lcdNextPos;
|
||||||
@@ -427,8 +429,7 @@ void lcd_putsiAtt(xcoord_t x, uint8_t y,const pm_char * s,uint8_t idx, LcdFlags
|
|||||||
void lcd_outhex4(xcoord_t x, uint8_t y, uint16_t val)
|
void lcd_outhex4(xcoord_t x, uint8_t y, uint16_t val)
|
||||||
{
|
{
|
||||||
x += FWNUM*4+1;
|
x += FWNUM*4+1;
|
||||||
for(int i=0; i<4; i++)
|
for(int i=0; i<4; i++) {
|
||||||
{
|
|
||||||
x -= FWNUM;
|
x -= FWNUM;
|
||||||
char c = val & 0xf;
|
char c = val & 0xf;
|
||||||
c = c>9 ? c+'A'-10 : c+'0';
|
c = c>9 ? c+'A'-10 : c+'0';
|
||||||
@@ -1163,15 +1164,7 @@ void putsTrimMode(xcoord_t x, uint8_t y, uint8_t phase, uint8_t idx, LcdFlags at
|
|||||||
#if ROTARY_ENCODERS > 0
|
#if ROTARY_ENCODERS > 0
|
||||||
void putsRotaryEncoderMode(xcoord_t x, uint8_t y, uint8_t phase, uint8_t idx, LcdFlags att)
|
void putsRotaryEncoderMode(xcoord_t x, uint8_t y, uint8_t phase, uint8_t idx, LcdFlags att)
|
||||||
{
|
{
|
||||||
#if ROTARY_ENCODERS > 2
|
|
||||||
int16_t v;
|
|
||||||
if(idx < (NUM_ROTARY_ENCODERS - NUM_ROTARY_ENCODERS_EXTRA))
|
|
||||||
v = phaseAddress(phase)->rotaryEncoders[idx];
|
|
||||||
else
|
|
||||||
v = g_model.rotaryEncodersExtra[phase][idx - (NUM_ROTARY_ENCODERS - NUM_ROTARY_ENCODERS_EXTRA)];
|
|
||||||
#else
|
|
||||||
int16_t v = phaseAddress(phase)->rotaryEncoders[idx];
|
int16_t v = phaseAddress(phase)->rotaryEncoders[idx];
|
||||||
#endif
|
|
||||||
|
|
||||||
if (v > ROTARY_ENCODER_MAX) {
|
if (v > ROTARY_ENCODER_MAX) {
|
||||||
uint8_t p = v - ROTARY_ENCODER_MAX - 1;
|
uint8_t p = v - ROTARY_ENCODER_MAX - 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user