mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
Added an assertion to GuiComponent::setSize() to check for negative mSize values
This commit is contained in:
parent
eccc5095fb
commit
302f6e0fc5
|
@ -115,6 +115,8 @@ void GuiComponent::setOrigin(float x, float y)
|
|||
|
||||
void GuiComponent::setSize(const float w, const float h)
|
||||
{
|
||||
assert(w >= 0.0f && h >= 0.0f);
|
||||
|
||||
if (mSize.x == w && mSize.y == h)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in a new issue