Skip to content

Commit

Permalink
GRAPHICS: When setting BorderQuad, floor size and update cut
Browse files Browse the repository at this point in the history
  • Loading branch information
Nostritius authored and DrMcCoy committed Nov 3, 2018
1 parent b690a24 commit f75df7a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/graphics/aurora/borderquad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,14 @@ void BorderQuad::getPosition(float &x, float &y, float &z) {
}

void BorderQuad::setSize(float w, float h) {
_w = w;
_h = h;
_w = std::floor(w);
_h = std::floor(h);

if (_h < 2 * _edgeHeight) {
_verticalCut = true;
} else {
_verticalCut = false;
}
}

void BorderQuad::getSize(float &w, float &h) const {
Expand Down

0 comments on commit f75df7a

Please sign in to comment.