2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 17:47:43 +00:00

architectural tweaks

This commit is contained in:
Jack Andersen
2015-11-21 18:32:12 -10:00
parent 2f1b7cfc40
commit 2df0f7873d
7 changed files with 83 additions and 10 deletions

View File

@@ -3,10 +3,11 @@
namespace Specter
{
void RootView::setWindow(boo::IWindow* window)
void RootView::setWindow(boo::IWindow* window, float userScale)
{
window->setCallback(this);
m_window = window;
float pf = window->getVirtualPixelFactor();
m_scale = window->getVirtualPixelFactor() * userScale;
}
void RootView::resized(const boo::SWindowRect& rect)