mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-16 20:15: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)
|
void GuiComponent::setSize(const float w, const float h)
|
||||||
{
|
{
|
||||||
|
assert(w >= 0.0f && h >= 0.0f);
|
||||||
|
|
||||||
if (mSize.x == w && mSize.y == h)
|
if (mSize.x == w && mSize.y == h)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue