Dpi awareness (#109)

* dpi awareness test

* dpi scaling updates

* dpi scaling updates

* missing mouse inputs fix (I hope finally)

* finishing up the dpi branch...
This commit is contained in:
Turánszki János
2020-05-05 00:04:38 +01:00
committed by GitHub
parent b46fecbff2
commit 4a11d6a202
77 changed files with 582 additions and 596 deletions
+3 -3
View File
@@ -10,10 +10,10 @@ EnvProbeWindow::EnvProbeWindow(EditorComponent* editor) : GUI(&editor->GetGUI())
assert(GUI && "Invalid GUI!");
envProbeWindow = new wiWindow(GUI, "Environment Probe Window");
envProbeWindow->SetSize(XMFLOAT2(600, 400));
envProbeWindow->SetSize(XMFLOAT2(300, 200));
GUI->AddWidget(envProbeWindow);
float x = 250, y = 0, step = 45;
float x = 100, y = 5, step = 35;
realTimeCheckBox = new wiCheckBox("RealTime: ");
realTimeCheckBox->SetPos(XMFLOAT2(x, y += step));
@@ -68,7 +68,7 @@ EnvProbeWindow::EnvProbeWindow(EditorComponent* editor) : GUI(&editor->GetGUI())
envProbeWindow->Translate(XMFLOAT3(30, 30, 0));
envProbeWindow->Translate(XMFLOAT3(100, 100, 0));
envProbeWindow->SetVisible(false);
SetEntity(INVALID_ENTITY);