mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2025-02-16 21:38:39 +00:00
[FL-3729, FL-3730] Gui: fix string width calculation (#3305)
This commit is contained in:
parent
17b122990f
commit
1543170f4c
3 changed files with 6 additions and 6 deletions
|
@ -321,10 +321,10 @@ static void canvas_draw_u8g2_bitmap_int(
|
|||
|
||||
void canvas_draw_u8g2_bitmap(
|
||||
u8g2_t* u8g2,
|
||||
u8g2_uint_t x,
|
||||
u8g2_uint_t y,
|
||||
u8g2_uint_t w,
|
||||
u8g2_uint_t h,
|
||||
uint8_t x,
|
||||
uint8_t y,
|
||||
uint8_t w,
|
||||
uint8_t h,
|
||||
const uint8_t* bitmap,
|
||||
IconRotation rotation) {
|
||||
u8g2_uint_t blen;
|
||||
|
|
|
@ -96,4 +96,4 @@ void canvas_draw_u8g2_bitmap(
|
|||
uint8_t width,
|
||||
uint8_t height,
|
||||
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
|
||||
direction.
|
||||
*/
|
||||
//#define U8G2_16BIT
|
||||
#define U8G2_16BIT
|
||||
|
||||
/*
|
||||
The following macro switches the library into dynamic display buffer allocation mode.
|
||||
|
|
Loading…
Add table
Reference in a new issue