mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-24 13:52:38 +03:00
[FL-3729, FL-3730] Gui: fix string width calculation (#3305)
This commit is contained in:
parent
17b122990f
commit
1543170f4c
@ -321,10 +321,10 @@ static void canvas_draw_u8g2_bitmap_int(
|
|||||||
|
|
||||||
void canvas_draw_u8g2_bitmap(
|
void canvas_draw_u8g2_bitmap(
|
||||||
u8g2_t* u8g2,
|
u8g2_t* u8g2,
|
||||||
u8g2_uint_t x,
|
uint8_t x,
|
||||||
u8g2_uint_t y,
|
uint8_t y,
|
||||||
u8g2_uint_t w,
|
uint8_t w,
|
||||||
u8g2_uint_t h,
|
uint8_t h,
|
||||||
const uint8_t* bitmap,
|
const uint8_t* bitmap,
|
||||||
IconRotation rotation) {
|
IconRotation rotation) {
|
||||||
u8g2_uint_t blen;
|
u8g2_uint_t blen;
|
||||||
|
@ -96,4 +96,4 @@ void canvas_draw_u8g2_bitmap(
|
|||||||
uint8_t width,
|
uint8_t width,
|
||||||
uint8_t height,
|
uint8_t height,
|
||||||
const uint8_t* bitmap,
|
const uint8_t* bitmap,
|
||||||
uint8_t rotation);
|
IconRotation rotation);
|
||||||
|
@ -67,7 +67,7 @@
|
|||||||
Use 16 Bit mode for any display with more than 240 pixel in one
|
Use 16 Bit mode for any display with more than 240 pixel in one
|
||||||
direction.
|
direction.
|
||||||
*/
|
*/
|
||||||
//#define U8G2_16BIT
|
#define U8G2_16BIT
|
||||||
|
|
||||||
/*
|
/*
|
||||||
The following macro switches the library into dynamic display buffer allocation mode.
|
The following macro switches the library into dynamic display buffer allocation mode.
|
||||||
|
Loading…
Reference in New Issue
Block a user