Skip to content
Snippets Groups Projects
Commit 2c54ddf7 authored by pippin's avatar pippin
Browse files

st3m_gfx: fix scale factor when changing default mode

parent e542eb59
No related branches found
No related tags found
1 merge request!574gfx: fix scaling in transform
Pipeline #9254 passed
......@@ -183,7 +183,7 @@ static Ctx *st3m_gfx_ctx_int(st3m_gfx_mode mode) {
}
static void st3m_gfx_viewport_transform(Ctx *ctx, int reset) {
int scale = st3m_gfx_scale(_st3m_gfx_mode);
int scale = st3m_gfx_scale(_st3m_gfx_mode ? _st3m_gfx_mode : default_mode);
int32_t offset_x = FLOW3R_BSP_DISPLAY_WIDTH / 2 / scale;
int32_t offset_y = FLOW3R_BSP_DISPLAY_HEIGHT / 2 / scale;
if (reset)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment