From e3b649060dcf74faa0821c417dc70b4798cd394f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Kol=C3=A5s?= <pippin@gimp.org> Date: Fri, 25 Aug 2023 23:30:28 +0200 Subject: [PATCH] st3m_gfx: do not rotate display in base transform Fixes #62 --- components/st3m/st3m_gfx.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/components/st3m/st3m_gfx.c b/components/st3m/st3m_gfx.c index a4154ed69a..6fc6f03c1d 100644 --- a/components/st3m/st3m_gfx.c +++ b/components/st3m/st3m_gfx.c @@ -443,12 +443,11 @@ void st3m_gfx_init(void) { ctx_set_texture_cache(fb_desc->ctx, framebuffer_descs[0].ctx); } assert(fb_desc->ctx != NULL); - // Rotate by 180 deg and translate x and y by 120 px to have (0,0) at - // the center of the screen + // translate x and y by 120 px to have (0,0) at center of the screen int32_t offset_x = FLOW3R_BSP_DISPLAY_WIDTH / 2; int32_t offset_y = FLOW3R_BSP_DISPLAY_HEIGHT / 2; - ctx_apply_transform(fb_desc->ctx, -1, 0, offset_x, 0, -1, offset_y, 0, - 0, 1); + ctx_apply_transform(fb_desc->ctx, 1, 0, offset_x, 0, 1, offset_y, 0, 0, + 1); // Push descriptor to freeq. BaseType_t res = xQueueSend(framebuffer_freeq, &i, 0); -- GitLab