[FL-3729] Gui: unicode support, new canvas API (#3322)

* Revert "Rollback #3305 and #3297 fix various rendering issues (#3307)"

This reverts commit 531ba24e9a.

* Gui: refactor canvas to use proper coordinate system types. Furi: new furi_break check macros. Desktop: proper types for negative offset.

* Desktop: proper types in desktop_view_locked_doors_draw

* Examples: update images example, off it goes

---------

Co-authored-by: hedger <hedger@users.noreply.github.com>
This commit is contained in:
あく
2024-03-20 00:23:06 +09:00
committed by GitHub
parent acc39a4bc0
commit bcde0aefbd
10 changed files with 259 additions and 223 deletions
@@ -13,7 +13,7 @@
#include "example_images_icons.h"
typedef struct {
uint8_t x, y;
int32_t x, y;
} ImagePosition;
static ImagePosition image_position = {.x = 0, .y = 0};
@@ -23,7 +23,7 @@ static void app_draw_callback(Canvas* canvas, void* ctx) {
UNUSED(ctx);
canvas_clear(canvas);
canvas_draw_icon(canvas, image_position.x % 128, image_position.y % 64, &I_dolphin_71x25);
canvas_draw_icon(canvas, image_position.x, image_position.y, &I_dolphin_71x25);
}
static void app_input_callback(InputEvent* input_event, void* ctx) {