bgfx/examples/common/entry
XingYi Hu b2346a04c5 Fix OSX initial window size event. (#1311)
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.
2018-01-09 09:53:50 -08:00
..
cmd.cpp Happy New Year! 2018-01-01 11:16:06 -08:00
cmd.h Happy New Year! 2018-01-01 11:16:06 -08:00
dbg.h Happy New Year! 2018-01-01 11:16:06 -08:00
entry_android.cpp texturev: Allow arbitrary window size. 2018-01-02 19:15:04 -08:00
entry_asmjs.cpp texturev: Allow arbitrary window size. 2018-01-02 19:15:04 -08:00
entry_glfw.cpp entry: Drop file event for GLFW. 2018-01-03 21:58:37 -08:00
entry_ios.mm texturev: Allow arbitrary window size. 2018-01-02 19:15:04 -08:00
entry_noop.cpp texturev: Allow arbitrary window size. 2018-01-02 19:15:04 -08:00
entry_osx.mm Fix OSX initial window size event. (#1311) 2018-01-09 09:53:50 -08:00
entry_p.h entry: Added drop file event WIP. 2018-01-03 21:37:42 -08:00
entry_sdl.cpp entry: Drop file event for SDL. 2018-01-03 22:49:10 -08:00
entry_windows.cpp entry: Added drop file event WIP. 2018-01-03 21:37:42 -08:00
entry_winrt.cx texturev: Allow arbitrary window size. 2018-01-02 19:15:04 -08:00
entry_x11.cpp texturev: Allow arbitrary window size. 2018-01-02 19:15:04 -08:00
entry.cpp texturev: Added support for drop file. 2018-01-04 13:05:36 -08:00
entry.h texturev: Added support for drop file. 2018-01-04 13:05:36 -08:00
input.cpp Happy New Year! 2018-01-01 11:16:06 -08:00
input.h Happy New Year! 2018-01-01 11:16:06 -08:00