core: fullscreen/resize refactory