ebiten/internal/uidriver/glfw
Hajime Hoshi b5d4c834b8 internal/uidriver/glfw: Bug fix: More precise window size adjustment
Before this change, setWindowSize converts the size in device-
independent pixels once, invokes adjustWindowSizeBasedOnSizeLimitsInDP,
and then restore the values in device-dependent pixels. This might
introduce a slight error and then SetSize be unexpectedly invoked.
Such SetSize call with a slightly different size might not invoke
the FramebufferSize callback, and then this blocked forever when
maximizing the window.

This change fixes this by adjusting the size limits instead of the
window size so that the window size is not modified unexpectedly.

Closes #1577
2021-04-18 00:56:37 +09:00
..
graphics_darwin.go uidriver/glfw: Bug fix: OpenGL was adopted unexpectedly on macOS Big Sur 2020-12-09 10:21:26 +09:00
graphics_opengl.go Clean up the 'js' build tags 2020-10-07 02:07:03 +09:00
hideconsole_notwindows.go Add uidriver package and move UI implementation to this packaage 2019-04-07 18:21:16 +09:00
hideconsole_windows.go Clean up the 'js' build tags 2020-10-07 01:33:10 +09:00
input.go ebiten: Bug fix: AdjustPosition could return Inf 2021-03-27 18:46:14 +09:00
keys.go ebiten: Change the key name convention to follow the Web standard 2021-04-14 22:49:07 +09:00
run_notsinglethread.go internal/uidriver/glfw: Update the screen on resizing 2021-02-07 23:03:56 +09:00
run_singlethread.go internal/uidriver/glfw: Update the screen on resizing 2021-02-07 23:03:56 +09:00
ui_darwin.go internal/uidriver/glfw: Remove the dirty hack creating a temporary UI instance 2021-02-11 03:45:39 +09:00
ui_unix.go internal/uidriver/glfw, internal/devicescale: Add comments 2021-04-17 15:45:46 +09:00
ui_windows.go internal/uidriver/glfw: Refactoring: use glfw.Window when possible 2021-04-03 17:29:38 +09:00
ui.go internal/uidriver/glfw: Bug fix: More precise window size adjustment 2021-04-18 00:56:37 +09:00
window.go internal/uidriver/glfw: Bug fix: Crash at Restore 2021-04-18 00:10:40 +09:00