We are glad tou enjoyed it! For the window scaling for most of it we tracked the size of the visible viewport.