b2346a04c5
The height returned by contentRectForFrameRect is not exactly the same as the ENTRY_DEFAULT_HEIGHT if the screen size is not big enough. For example, on my Mac, rect.height equals 702, which is 18 less than ENTRY_DEFAULT_HEIGHT(720). This will cause the imgui’s cord system offset by 18, so even the cursor is not on the button, the imgui will still think the mouse is hover the button, also, the top of imgui’s window will also offset a little bit. However, these symptom will gone when the window is resized. In short, this fix unify the behavior of window size event in initial state with resize. |
||
---|---|---|
.. | ||
cmd.cpp | ||
cmd.h | ||
dbg.h | ||
entry_android.cpp | ||
entry_asmjs.cpp | ||
entry_glfw.cpp | ||
entry_ios.mm | ||
entry_noop.cpp | ||
entry_osx.mm | ||
entry_p.h | ||
entry_sdl.cpp | ||
entry_windows.cpp | ||
entry_winrt.cx | ||
entry_x11.cpp | ||
entry.cpp | ||
entry.h | ||
input.cpp | ||
input.h |