Reinit offscreen bitmap when set keyboard layout

Fixes #9345