Skip to content
Snippets Groups Projects
Commit e3b64906 authored by pippin's avatar pippin Committed by moon2
Browse files

st3m_gfx: do not rotate display in base transform

Fixes #62
parent 885930ed
No related branches found
No related tags found
1 merge request!227correctly initialize display with orientation
...@@ -443,12 +443,11 @@ void st3m_gfx_init(void) { ...@@ -443,12 +443,11 @@ void st3m_gfx_init(void) {
ctx_set_texture_cache(fb_desc->ctx, framebuffer_descs[0].ctx); ctx_set_texture_cache(fb_desc->ctx, framebuffer_descs[0].ctx);
} }
assert(fb_desc->ctx != NULL); assert(fb_desc->ctx != NULL);
// Rotate by 180 deg and translate x and y by 120 px to have (0,0) at // translate x and y by 120 px to have (0,0) at center of the screen
// the center of the screen
int32_t offset_x = FLOW3R_BSP_DISPLAY_WIDTH / 2; int32_t offset_x = FLOW3R_BSP_DISPLAY_WIDTH / 2;
int32_t offset_y = FLOW3R_BSP_DISPLAY_HEIGHT / 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, ctx_apply_transform(fb_desc->ctx, 1, 0, offset_x, 0, 1, offset_y, 0, 0,
0, 1); 1);
// Push descriptor to freeq. // Push descriptor to freeq.
BaseType_t res = xQueueSend(framebuffer_freeq, &i, 0); BaseType_t res = xQueueSend(framebuffer_freeq, &i, 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment