Fix key rendering to only scale once

This commit is contained in:
David Boddie
2019-07-31 17:13:17 +00:00
parent 7b6c6e51b3
commit da88831689

View File

@ -207,10 +207,7 @@ render_key_outline (EekRenderer *renderer,
active ? GTK_STATE_FLAG_ACTIVE : GTK_STATE_FLAG_NORMAL); active ? GTK_STATE_FLAG_ACTIVE : GTK_STATE_FLAG_NORMAL);
gtk_render_background (priv->key_context, gtk_render_background (priv->key_context,
cr, cr, 0, 0, bounds.width, bounds.height);
0, 0,
bounds.width * priv->scale,
bounds.height * priv->scale);
gtk_style_context_set_state(priv->key_context, GTK_STATE_FLAG_NORMAL); gtk_style_context_set_state(priv->key_context, GTK_STATE_FLAG_NORMAL);
} }