Skip to content

Commit

Permalink
fixed Rectangle::setHeight()
Browse files Browse the repository at this point in the history
setHeight() updated the width instead of the height of the rectangle...
  • Loading branch information
jjw36 committed Mar 12, 2021
1 parent ec8a3f6 commit 5fa3605
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TSGL/Rectangle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ void Rectangle::setHeight(GLfloat height) {
return;
}
attribMutex.lock();
myWidth = height;
myHeight = height;
myYScale = height;
attribMutex.unlock();
}
Expand Down

0 comments on commit 5fa3605

Please sign in to comment.