Skip to content

Commit

Permalink
[FL-3729, FL-3730] Gui: fix string width calculation (#3305)
Browse files Browse the repository at this point in the history
  • Loading branch information
skotopes authored Dec 21, 2023
1 parent 17b1229 commit 1543170
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions applications/services/gui/canvas.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion applications/services/gui/canvas_i.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,4 @@ void canvas_draw_u8g2_bitmap(
uint8_t width,
uint8_t height,
const uint8_t* bitmap,
uint8_t rotation);
IconRotation rotation);
2 changes: 1 addition & 1 deletion lib/u8g2/u8g2.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1543170

Please sign in to comment.