Fixed UI Rendering #326
|
@ -182,7 +182,7 @@ namespace SHADE
|
||||||
mousePos.x = x;
|
mousePos.x = x;
|
||||||
mousePos.y = y;
|
mousePos.y = y;
|
||||||
auto ws = SHSystemManager::GetSystem<SHGraphicsSystem>()->GetWindow()->GetWindowSize();
|
auto ws = SHSystemManager::GetSystem<SHGraphicsSystem>()->GetWindow()->GetWindowSize();
|
||||||
windowSize = { ws.first,ws.second };
|
windowSize = { static_cast<float>(ws.first), static_cast<float>(ws.second) };
|
||||||
mousePos /= windowSize;
|
mousePos /= windowSize;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -300,7 +300,7 @@ namespace SHADE
|
||||||
mousePos.x = x;
|
mousePos.x = x;
|
||||||
mousePos.y = y;
|
mousePos.y = y;
|
||||||
auto ws = SHSystemManager::GetSystem<SHGraphicsSystem>()->GetWindow()->GetWindowSize();
|
auto ws = SHSystemManager::GetSystem<SHGraphicsSystem>()->GetWindow()->GetWindowSize();
|
||||||
windowSize = { ws.first,ws.second };
|
windowSize = { static_cast<float>(ws.first), static_cast<float>(ws.second) };
|
||||||
mousePos /= windowSize;
|
mousePos /= windowSize;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue