mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
remove Viewport class
This commit is contained in:
parent
105561ad77
commit
9843a1fc27
17 changed files with 60 additions and 115 deletions
|
|
@ -237,8 +237,8 @@ void Label::draw(const DrawContext& pctx, const Assets& assets) {
|
|||
textYOffset = pos.y-calcPos().y;
|
||||
totalLineHeight = lineHeight;
|
||||
|
||||
auto& viewport = pctx.getViewport();
|
||||
glm::vec4 bounds {0, 0, viewport.getWidth(), viewport.getHeight()};
|
||||
const auto& viewport = pctx.getViewport();
|
||||
glm::vec4 bounds {0, 0, viewport.x, viewport.y};
|
||||
if (parent) {
|
||||
auto ppos = parent->calcPos();
|
||||
auto psize = parent->getSize();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue