Merge pull request #523 from dariomanesku/master

Fixing imgui visible() function.
This commit is contained in:
Branimir Karadžić 2015-09-18 08:41:54 -07:00
commit 105ee8c708

View file

@ -3080,8 +3080,8 @@ struct Imgui
bool visible(int32_t _elemY, int32_t _elemHeight, int32_t _scissorY, int32_t _scissorHeight)
{
return _elemY > _scissorY
&& (_elemY+_elemHeight) < (_scissorY+_scissorHeight);
return (_elemY+_elemHeight) > _scissorY
&& (_elemY) < (_scissorY+_scissorHeight);
}
inline Area& getCurrentArea()