Hajime Hoshi
|
ad675640b1
|
internal/ui: bug fix: the aspect ratio should update the window size limits
Updates #1804
|
2022-02-09 23:18:41 +09:00 |
|
Hajime Hoshi
|
f2da62a175
|
internal/ui: refactoring
|
2022-02-09 22:22:14 +09:00 |
|
Hajime Hoshi
|
57c123a412
|
internal/ui: add comments
Updates #1804
|
2022-02-09 22:16:31 +09:00 |
|
Hajime Hoshi
|
891ca2a08d
|
ebiten: add IsWindowAspectRatioFixed
This also updates examples/windowsize.
Closes #1804
|
2022-02-09 20:06:18 +09:00 |
|
Hajime Hoshi
|
7482cae978
|
internal/ui: bug fix: the aspect ratio must be updated whenever the window size is forcibly updated
This also adds a new flag -aspectratiofixed to examples/windowsize
Updates #1804
|
2022-02-09 19:56:50 +09:00 |
|
Hajime Hoshi
|
740dfd5aed
|
internal/glfw: refactoring: keep the original API when possible
Updates #1804
|
2022-02-09 19:36:47 +09:00 |
|
Hajime Hoshi
|
623c050537
|
ebiten: rename SetKeepWindowAspectRatio -> SetWindowAspectRatioFixed
Updates #1804
|
2022-02-09 19:29:55 +09:00 |
|
Tom Lister
|
18659ef4ab
|
internal/ui: add SetWindowKeepAspectRatio (#1985)
Updates #1804
|
2022-02-09 19:11:25 +09:00 |
|
Hajime Hoshi
|
180eb483bb
|
internal/ui: make currentMonitor return initMonitor when the window is not initialized yet
|
2022-02-09 00:26:49 +09:00 |
|
Hajime Hoshi
|
b2872f216a
|
internal/ui: update comments
Updates #1575
|
2022-02-08 20:27:46 +09:00 |
|
Hajime Hoshi
|
cd2ef6771a
|
internal/ui: bug fix: a wrong monitor was used at setWindowPositionInDIP
|
2022-02-08 20:20:36 +09:00 |
|
Hajime Hoshi
|
9f581327fa
|
intetrnal/ui: remove recreating a window after the fullscreen mode
As macOS's fullscreen is a native fullscreen, this hack is no longer
needed.
Updates #1004
|
2022-02-08 19:41:09 +09:00 |
|
Hajime Hoshi
|
f8097eb45d
|
internal/ui: give an initial window size at createWindow
This enables to skip setWindowSizeInDIPImpl in most cases.
Updates #1651
Updates #1914
|
2022-02-08 19:36:30 +09:00 |
|
Hajime Hoshi
|
320e7037f6
|
internal/ui: update comments
|
2022-02-08 19:23:38 +09:00 |
|
Hajime Hoshi
|
6dbc5ba558
|
internal/ui: refactoring: call updateWindowSizeLimits in createWindow
|
2022-02-08 16:06:12 +09:00 |
|
Hajime Hoshi
|
4c6c31e384
|
all: reorder build tags in an alphabetical order
|
2022-02-08 15:49:15 +09:00 |
|
Hajime Hoshi
|
9c8b4db81f
|
internal/ui: separate 'vibrate' part to internal/vibrate
|
2022-02-08 14:48:55 +09:00 |
|
Hajime Hoshi
|
d2d3673bd2
|
internal/ui: remove a redundant call of SetTitle
|
2022-02-08 04:30:58 +09:00 |
|
Hajime Hoshi
|
2fc09c7fcb
|
internal/ui: use the cursor position to choose the initial monitor for Linux/UNIX
Updates #1918
Closes #1982
|
2022-02-08 03:20:45 +09:00 |
|
Hajime Hoshi
|
294ee43716
|
internal/ui: remove a special logic for UNIX
The issue #1118 can no longer be reproduced.
Updates #1118
Updates #1982
|
2022-02-08 01:29:22 +09:00 |
|
Hajime Hoshi
|
cb4085277b
|
internal/ui: bug fix: adjust the window position correctly
Updates #1982
|
2022-02-07 23:52:16 +09:00 |
|
Hajime Hoshi
|
ed04021151
|
internal/ui: use the cursor position to choose the initial monitor for Windows
Updates #1918
Updates #1982
|
2022-02-07 23:31:46 +09:00 |
|
Hajime Hoshi
|
cafb71719c
|
internal/ui: use the cursor position to choose the initial monitor
Updates #1982
|
2022-02-07 22:37:10 +09:00 |
|
Hajime Hoshi
|
126dc81a96
|
internal/ui: add a comment
|
2022-02-07 00:51:48 +09:00 |
|
Hajime Hoshi
|
b78160262c
|
internal/ui: rename files
|
2022-02-07 00:37:32 +09:00 |
|
Hajime Hoshi
|
f18aef2b08
|
ebiten: refactoring: move the caller of SetGraphicsDriver to the package ui
|
2022-02-06 22:01:25 +09:00 |
|
Hajime Hoshi
|
df60c4c92d
|
internal/driver: rename to internal/graphicsdriver
|
2022-02-06 20:41:32 +09:00 |
|
Hajime Hoshi
|
52f4c409ac
|
internal/ui: refactoring: make Graphics a global function
|
2022-02-06 20:29:49 +09:00 |
|
Hajime Hoshi
|
0f09ddfbd2
|
internal/driver: remove Window
Closes #1983
|
2022-02-06 20:12:40 +09:00 |
|
Hajime Hoshi
|
80c03792cb
|
internal/driver: move the key definitions to internal/ui
Updates #1983
|
2022-02-06 19:14:18 +09:00 |
|
Hajime Hoshi
|
887a3ff749
|
internal/cbackend: bug fix: compile error again
|
2022-02-06 19:07:17 +09:00 |
|
Hajime Hoshi
|
2fbfa5444b
|
internal/driver: remove Input
|
2022-02-06 18:34:31 +09:00 |
|
Hajime Hoshi
|
6f72b15912
|
internal/driver: move some definitions to internal/ui
Updates #1983
|
2022-02-06 18:13:45 +09:00 |
|
Hajime Hoshi
|
149736c3cf
|
internal/uidriver/*: integrate the packages into internal/ui
Updates #1983
|
2022-02-06 17:23:04 +09:00 |
|
Hajime Hoshi
|
7e5085f15b
|
Add uidriver package and move UI implementation to this packaage
|
2019-04-07 18:21:16 +09:00 |
|
Hajime Hoshi
|
a4a129e3af
|
ui: Rename currentUI -> theUI
|
2019-04-07 11:10:55 +09:00 |
|
Hajime Hoshi
|
6b8516c7a5
|
driver: Move ui.RegularTermination to driver
|
2019-04-07 10:54:05 +09:00 |
|
Hajime Hoshi
|
1b8d4abfdb
|
driver: Move ui.GraphicsContext to driver
|
2019-04-07 10:48:18 +09:00 |
|
Hajime Hoshi
|
b579bd7fd0
|
graphics: Remove GraphicsContext.Invalidated
|
2019-04-07 10:08:55 +09:00 |
|
Hajime Hoshi
|
6cdcd1ee62
|
input: Refactoring: Remove input dependencies from ui
|
2019-04-06 23:42:55 +09:00 |
|
Hajime Hoshi
|
a980de8326
|
ui: Take the Input driver
|
2019-04-06 23:29:13 +09:00 |
|
Hajime Hoshi
|
de9f54fd9d
|
driver: Add Input
|
2019-04-06 21:48:54 +09:00 |
|
Hajime Hoshi
|
80dcec865d
|
ui: Refactoring: Remove pollEvents
|
2019-03-31 19:51:53 +09:00 |
|
Hajime Hoshi
|
c21fb4d390
|
input: Move Touch to driver package
|
2019-03-31 18:58:43 +09:00 |
|
Hajime Hoshi
|
e273618081
|
input: Rename Reset -> ResetForFrame
|
2019-03-31 18:49:00 +09:00 |
|
Hajime Hoshi
|
64d3e26fb0
|
input: Rename UpdateTouches -> SetTouches
|
2019-03-31 16:30:03 +09:00 |
|
Hajime Hoshi
|
0536efd95f
|
ui: Remove AdjustedCursorPosition
|
2019-03-31 02:06:42 +09:00 |
|
Hajime Hoshi
|
dec6be1a11
|
ui: Remove AdjustedTouches
|
2019-03-31 02:03:59 +09:00 |
|
Hajime Hoshi
|
5d6f66935a
|
ui: Remove UpdateTouches
|
2019-03-31 01:54:38 +09:00 |
|
Hajime Hoshi
|
43ec1e7fb3
|
input: Refactoring: Make Touch a struct
|
2019-03-31 01:14:49 +09:00 |
|
Hajime Hoshi
|
853dbdf19d
|
input: Refactoring
|
2019-03-31 00:45:52 +09:00 |
|
Hajime Hoshi
|
7445144194
|
Move graphicsdriver.GrapahicsDriver to driver.Graphics
|
2019-03-30 22:38:02 +09:00 |
|
Hajime Hoshi
|
f2e42c3ea1
|
ui: Remove dependencies on driver package
|
2019-03-30 21:59:11 +09:00 |
|
Hajime Hoshi
|
d6d57fdadf
|
ui: Refactoring
|
2019-03-28 03:36:31 +09:00 |
|
Hajime Hoshi
|
8ec7ae4c08
|
Rename drivers -> driver
|
2019-03-28 01:48:45 +09:00 |
|
Hajime Hoshi
|
5e38f81462
|
Create packages drivers having actual drivers
|
2019-03-25 00:29:56 +09:00 |
|
Hajime Hoshi
|
dbc3461628
|
ui: Use flexbox for centering
|
2019-03-20 01:44:36 +09:00 |
|
Hajime Hoshi
|
a3882dbc37
|
ui: Bug fix: devicescale.GetAt must be called on the main thread
|
2019-03-12 00:28:37 +09:00 |
|
Hajime Hoshi
|
f56c3bd096
|
ui: Unexport SetWindowResizable (#320)
|
2019-02-25 02:19:47 +09:00 |
|
Hajime Hoshi
|
ea7c2f8da3
|
ui: Bug fix: Wrong assumption that the position was always >= 0
|
2019-02-24 23:34:36 +09:00 |
|
Hajime Hoshi
|
ba59cdbc5f
|
ui: Bug fix: The window must be shown on the current monitor (#829)
|
2019-02-24 23:26:07 +09:00 |
|
Hajime Hoshi
|
288e0a33ba
|
ui: Bug fix: SetSizeCallback must be effective only when the window is resizable
This is not a perfect solution but at least this fixes the
regression.
Fix #819
|
2019-02-24 03:25:38 +09:00 |
|
Hajime Hoshi
|
a3eddeb50f
|
Improve panic messages
|
2019-02-06 23:43:03 -10:00 |
|
Hajime Hoshi
|
5be567d58f
|
ui: Implement restoring context lost on browsers correctly
Fixes #734
|
2019-02-01 01:20:40 +09:00 |
|
Hajime Hoshi
|
ba47a19b17
|
mobile: Bug fix: error must be received without waiting for renderCh
Even when error happens, the error was not received when renderCh
received. This was the cause of freezing when error happens.
|
2019-01-28 12:32:48 +09:00 |
|
Hajime Hoshi
|
248f51cc02
|
ui: Fix comments
|
2019-01-17 23:40:33 +09:00 |
|
Hajime Hoshi
|
645b94de5f
|
ui: Bug fix: actualScreenScale must be called on the main thread
|
2019-01-16 23:32:47 +09:00 |
|
Hajime Hoshi
|
6ed4bbc0a2
|
ui: Fix comments
|
2019-01-13 22:51:24 +09:00 |
|
Hajime Hoshi
|
607186859d
|
ui: Run returns immediately on GopherJS
Fixes #778
|
2019-01-13 22:16:33 +09:00 |
|
Hajime Hoshi
|
5514a9c6ac
|
ui: Bug fix: Changing screen size didn't work correctly on Windows
Fixes #775
|
2019-01-09 11:08:27 +09:00 |
|
Hajime Hoshi
|
ae84e79d16
|
ui: Add IsWindowResizable and SetWindowResizable (again)
Fixes #320
|
2019-01-09 00:24:16 +09:00 |
|
Hajime Hoshi
|
0d4e903b7a
|
Revert "ui: Add IsWindowResizable and SetWindowResizable"
This reverts commit f403e0716f .
Reason: Compilation error on browsers
|
2019-01-09 00:12:57 +09:00 |
|
Hajime Hoshi
|
f403e0716f
|
ui: Add IsWindowResizable and SetWindowResizable
Fixes #320
|
2019-01-08 23:52:53 +09:00 |
|
Hajime Hoshi
|
7f656f11d6
|
ui: Bug fix: Minimum window width should be 1 when the window is not decorated
|
2019-01-07 00:46:41 +09:00 |
|
Hajime Hoshi
|
f2840bb0dc
|
ui: Remove 'syscall' package usages (#766)
|
2019-01-04 05:28:46 +09:00 |
|
Hajime Hoshi
|
90f82de5ef
|
glfw: Separate glfw-dependent part and the other part
|
2018-12-30 20:45:50 +09:00 |
|
Hajime Hoshi
|
55c2fa4de1
|
Use internal/glfw
|
2018-12-30 02:35:46 +09:00 |
|
Hajime Hoshi
|
83787123ac
|
ui: Refactoring
|
2018-12-28 14:08:44 +09:00 |
|
Hajime Hoshi
|
b349efaa0a
|
graphicsdriver/metal: Make main-thread usages more explicit
|
2018-12-28 02:43:00 +09:00 |
|
Hajime Hoshi
|
532488ac5c
|
mainthread: RunLockOSThread is mainthread package's responsibility
|
2018-12-28 02:20:53 +09:00 |
|
Hajime Hoshi
|
c76ce28065
|
Revert "ui: Bug fix: SetVsyncEnabled before Run didn't work on macOS"
This reverts commit 042b30a516 .
|
2018-12-28 02:18:38 +09:00 |
|
Hajime Hoshi
|
042b30a516
|
ui: Bug fix: SetVsyncEnabled before Run didn't work on macOS
|
2018-12-28 02:11:48 +09:00 |
|
Hajime Hoshi
|
4d0cc623fb
|
ui: Rename functions
|
2018-12-22 02:32:02 +09:00 |
|
Hajime Hoshi
|
ff62876552
|
Add Metal implementation
Fixes #621
|
2018-12-20 02:37:10 +09:00 |
|
Hajime Hoshi
|
294bf855af
|
ui: Fix logic: [NSApp mainWindow] can be nil when borderless
|
2018-12-19 02:25:12 +09:00 |
|
Hajime Hoshi
|
db4395d71b
|
ui: Bug fix: ScreenSizeFullscreen before Run crashes on Linux
|
2018-12-19 01:21:00 +09:00 |
|
Hajime Hoshi
|
6ef5cc5857
|
ui: Bug fix: SetWindowDecorated didn't work
Fixes #753
|
2018-12-19 01:01:18 +09:00 |
|
Hajime Hoshi
|
b3ce89aab1
|
ui: Bug fix: SetWindowIcon before Run didn't work
Fixes #755
|
2018-12-18 23:16:09 +09:00 |
|
Hajime Hoshi
|
241ccc307f
|
ui: Add comments about #753
|
2018-12-18 03:34:45 +09:00 |
|
Hajime Hoshi
|
eac00c3d83
|
ui: Bug fix: SetCursorVisible before Run didn't work
Fixes #754
|
2018-12-18 03:07:16 +09:00 |
|
Hajime Hoshi
|
2fd0daec10
|
ui: Fix comments
|
2018-12-04 03:10:54 +01:00 |
|
Hajime Hoshi
|
d2595c5be7
|
ui: Refactoring
|
2018-11-15 01:08:36 +09:00 |
|
Hajime Hoshi
|
e24f6b7848
|
graphicsdriver/opengl: Rename GetDriver -> Get
|
2018-11-13 00:01:26 +09:00 |
|
Hajime Hoshi
|
aff77d98e4
|
graphicsdriver/opengl: Bug fix: compile error on browsers and mobiles
|
2018-11-11 04:51:17 +09:00 |
|
Hajime Hoshi
|
241716d0e6
|
Add package graphicsdriver; Move opengl to graphicsdriver/opengl
|
2018-11-10 22:52:37 +09:00 |
|
Ben Echols
|
5e70fce639
|
Added monitor cache and scale cache (#731)
|
2018-11-07 20:54:37 +09:00 |
|
Hajime Hoshi
|
07ae1db0dd
|
opengl: Add Driver
|
2018-11-07 01:43:07 +09:00 |
|
Hajime Hoshi
|
2c7017534f
|
ui: Remove opengl dependency from ui package (desktop)
|
2018-11-05 01:24:53 +09:00 |
|
Hajime Hoshi
|
4090258904
|
opengl: Remove Init (except for mobile)
|
2018-11-05 00:21:39 +09:00 |
|
Hajime Hoshi
|
97a9e99112
|
opengl: Rename: BindScreenFramebuffer -> BeforeSwapping
|
2018-11-03 04:08:00 +09:00 |
|