mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
cleanup
This commit is contained in:
parent
95721a6864
commit
5f76e72748
18 changed files with 44 additions and 44 deletions
|
|
@ -20,7 +20,7 @@ void gui::Canvas::draw(const DrawContext& pctx, const Assets& assets) {
|
|||
batch->rect(pos.x, pos.y, size.x, size.y, 0, 0, 0, {}, false, false, col);
|
||||
}
|
||||
|
||||
void gui::Canvas::setSize(glm::vec2 size) {
|
||||
void gui::Canvas::setSize(const glm::vec2& size) {
|
||||
UINode::setSize(size);
|
||||
data->extend(size.x, size.y);
|
||||
texture->reload(*data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue