From 8981faa61fc1e9421805938e6656d84ff61be1f9 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Thu, 15 Oct 2015 10:42:29 +0200 Subject: update bgfx to latest (nw) --- 3rdparty/bgfx/examples/common/imgui/imgui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '3rdparty/bgfx/examples/common/imgui/imgui.cpp') diff --git a/3rdparty/bgfx/examples/common/imgui/imgui.cpp b/3rdparty/bgfx/examples/common/imgui/imgui.cpp index 1ff8e090818..073191fde57 100644 --- a/3rdparty/bgfx/examples/common/imgui/imgui.cpp +++ b/3rdparty/bgfx/examples/common/imgui/imgui.cpp @@ -466,7 +466,7 @@ struct Imgui _size = sizeof(s_droidSansTtf); } - IMGUI_create(_data, _size, _fontSize, _allocator); + IMGUI_create(_data, _size, _fontSize, m_allocator); m_nvg = nvgCreate(1, m_view); nvgCreateFontMem(m_nvg, "default", (unsigned char*)_data, INT32_MAX, 0); @@ -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() -- cgit v1.2.3-70-g09d2