gfx: Switch Nyx gfx prints to landscape

This commit is contained in:
CTCaer committed 2020-04-30 14:01:10 +03:00
1 parent 97e45346ea
commit 2dd474ad26
3 files changed
+60 -181

No files matched your search

+1 -1
View File
@@ -182,7 +182,7 @@ static void _save_fb_to_bmp()
static void _disp_fb_flush(int32_t x1, int32_t y1, int32_t x2, int32_t y2, const lv_color_t *color_p)
{
// Draw to framebuffer.
gfx_set_rect_land_pitch((u32 *)NYX_FB_ADDRESS, (u32 *)color_p, x1, y1, x2, y2); //pitch
gfx_set_rect_land_pitch((u32 *)NYX_FB_ADDRESS, (u32 *)color_p, 720, x1, y1, x2, y2); //pitch
// Check if display init was done. If it's the first big draw, init.
if (!disp_init_done && ((x2 - x1 + 1) > 600))