Fixing imgui visible() function.

This commit is contained in:
Dario Manesku 2015-09-16 19:33:21 +02:00
parent f05443c0e7
commit 5086338088

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()