Commit Graph

5513 Commits

Author SHA1 Message Date
Hajime Hoshi
72ff5a8cbc internal/uidriver/glfw: Avoid busy loop by sleeping
Updates #1580
2021-04-24 05:20:59 +09:00
Hajime Hoshi
3e4b65d35a internal/uidriver/glfw: Bug fix: Deadlock at FramebufferSize callback
glfw.PollEvents might invoke multiple FramebufferSize callbacks in
theory, this is very rare though. In this case, the sending an object
to the channel never ends.

This change fixes this deadlock by using 'select'.

Closes #1618
2021-04-24 02:25:26 +09:00
Hajime Hoshi
f5574d911e internal/uidriver/glfw: Fix comments
Updates #1618
2021-04-23 03:29:21 +09:00
Hajime Hoshi
8b1100888e internal/uidriver/glfw: Bug fix: Always wait for SetFramebuffer
In case when the callback is not called, let's use timeout.

Updates #1618
2021-04-23 03:07:47 +09:00
corfe83
ea0645492e internal/devicescale: Fallback to simpler logic when trying to get DPI from monitor and failing (#1600)
Closes #1612
2021-04-21 11:44:12 +09:00
Hajime Hoshi
ab1eb1a0dd examples/windowsize: Bug fix: Suppress calling SetWindowPosition if the position is not updated
This is a temoprary fix for the issue that the window size unexpectedly
shrunk on Linux.

Updates #1607
Closes #1605
2021-04-20 20:51:15 +09:00
Hajime Hoshi
ed8be49d23 examples/audiopanning: Bug fix: Align the buffer size
Closes #1598
2021-04-20 02:49:12 +09:00
Hajime Hoshi
f4538a969d Revert "examples/audiopanning: Bug fix: Out of range at reading bytes"
This reverts commit da0eb0b067.

Reason: Calling UnreadByte twice is illegal

Updates #1598
2021-04-20 00:21:09 +09:00
Hajime Hoshi
da0eb0b067 examples/audiopanning: Bug fix: Out of range at reading bytes
Closes #1598
2021-04-19 22:14:31 +09:00
Hajime Hoshi
8923ae13fe ebiten: Bug fix: Ignore the outside size when they are 0 at Layout
Closes #1589
2021-04-18 23:16:10 +09:00
Hajime Hoshi
b8e8485fde internal/uidriver/glfw: Bug fix: Crash on some operations on native fullscreen mode (macOS)
This change forbids some operations when the wiindow is natively
fullscreened on macOS in order to avoid crashes.

Closes #1578
2021-04-18 18:18:20 +09:00
Hajime Hoshi
b3afcae16c examples/shader: Add build tags for the generated files
Closes #1581
2021-04-18 18:04:43 +09:00
Hajime Hoshi
cc65af6b00 internal/uidriver/glfw: Bug fix: FramebufferSize callback was not called when the window size was not changed
Closes #1580
2021-04-18 15:49:30 +09:00
Hajime Hoshi
e113b1e4ca Update .travis.yml and internal/jsutil for the latest GopherJS
Go 1.12 doesn't work with the latest GopherJS.

Updates #1581
Closes #1582
2021-04-18 15:09:45 +09:00
Hajime Hoshi
e8d9fcf220 internal/uidriver/js: Bug fix: CursorPosition crashed before the main loop on browsers
Closes #1559
2021-04-18 04:57:55 +09:00
Hajime Hoshi
49c535fe84 ebiten: Bug fix: Wrong documentation about SetScreenClearedEveryFrame
Closes #1555
2021-03-30 00:32:39 +09:00
Hajime Hoshi
b0f89b44b6 Skip the Wasm tests on Ubuntu 2021-03-27 02:54:54 +09:00
Hajime Hoshi
d233a0f058 Update README about input devices on mobiles
Updates #1539
2021-03-27 00:38:52 +09:00
Hajime Hoshi
fc867d4b0b internal/graphics: Bug fix: Race condition at QuadVertices
QuadVertices or verticesBackend.slice reused its backend slice.
This caused a race condition. QuadVertices can be accessed from
multiple goroutines, and resetting the head and copying the data
at internal/graphicscommand might not be synced.

This change fixes this issue by basically reverting
9cb631e30f.

Closes #1546
2021-03-20 16:53:11 +09:00
Humphrey Shotton
e4080b9830 internal/graphicscommand: fix missing graphicscommand log (#1543)
Closes #1544
2021-03-15 02:14:45 +09:00
Hajime Hoshi
00236daa39 cmd/ebitenmobile: Bug fix: Skip 'uinput-fpc' on the joystick detection on Android
Apparently 'uinput-fpc' is a fingerprint reader and is recognized as
a joystick unexpectedly. This was often a primary gamepad on Ebiten
and confused Ebiten applications.

This change fixes this issue by skipping 'uinput-fpc' at the joystick
detection.

Closes #1542
2021-03-14 23:28:04 +09:00
Hajime Hoshi
62dab47dcd ebiten: Update input API comments for Android
Closes #1539
2021-03-14 18:04:39 +09:00
Hajime Hoshi
a8dff589d1 Revert "uidriver/glfw: Bug fix: Do not iconify the fullscreen window automatically"
This reverts commit 61bf10e73e.

Reason: This prevents the app from iconifying when toggling apps.

Updates #1405
Closes #1504
2021-02-23 20:20:10 +09:00
Hajime Hoshi
a829f8d94c examples/audiopanning: Bug fix: Fix several issues
* The stream was not looped.
 * The shown position was wrong.

Closes #1502
2021-02-22 02:02:12 +09:00
Hajime Hoshi
2d817a10fc internal/graphicsdriver/opengl/gl: Bug fix: Remove unsafe reflect usage
Closes #1495
2021-02-17 14:58:45 +09:00
Hajime Hoshi
e110abbc9e Revert "cmd/ebitenmobile: Use the better way to go-get dependencies"
This reverts commit ad2d356262.

Reason: Installation failed on Windows.

Closes #1493
2021-02-14 18:27:10 +09:00
Hajime Hoshi
9277ac108b cmd/ebitenmobile: Use the better way to go-get dependencies
Updates #1487
2021-02-12 02:46:16 +09:00
Hajime Hoshi
3fecdd601a cmd/ebitenmobile: Bug fix: Record go.sum correctly to build gomobile/gobind
Closes #1487
2021-02-10 02:20:44 +09:00
Hajime Hoshi
702fa8cb8b cmd/ebitenmobile: Update gomobile version
This change fixes these issues:

 * Fail to run on Go 1.16 and after
 * Fail to run on Android NDK r22 and after

Closes #1484
2021-02-09 02:22:02 +09:00
Hajime Hoshi
9db2017648 cmd/ebitenmobile, internal/devicescale: Experimental fix of the display density
Closes #1481
2021-02-07 14:17:17 +09:00
Hajime Hoshi
19b3735ad7 gofmt 2021-01-31 22:41:39 +09:00
Hajime Hoshi
321bc6d998 ebiten: Bug fix: The vertex backend was not flushed when the screen is shrunk
The last parameter of QuadVertices represents whether we can flush
the backend vertices (on Wasm). The problem was that this was
unexpectedly false even though the image is the screen, when the
screen rendering is done with FilterLinear instead of FilterScreen.

Closes #1479
2021-01-31 22:40:58 +09:00
Hajime Hoshi
53c300a93f audio: Bug fix: Deadlock at acquiring the semaphore
Closes #1469
2021-01-23 23:11:22 +09:00
Hajime Hoshi
f488988384 Use the more stable version of wasmbrowsertest (.travis.yml) 2021-01-05 20:01:58 +09:00
Hajime Hoshi
6fffde13bb Use the more stable version of wasmbrowsertest 2021-01-05 12:44:45 +09:00
Hajime Hoshi
446d216da0 packing: Bug fix: Extend could create a too big page
Closes #1454
2020-12-31 17:35:26 +09:00
Hajime Hoshi
1be8c3fc16 uidriver/glfw: Bug fix: OpenGL was adopted unexpectedly on macOS Big Sur
Fixes #1429
2020-12-09 10:22:00 +09:00
Hajime Hoshi
68a5bcd066 Update Oto to v0.6.8
Fixes #1424
2020-11-29 13:01:25 +09:00
Hajime Hoshi
0527073264 uidriver/glfw: Bug fix: Do not iconify the fullscreen window automatically
Fixes #1405
2020-11-22 22:43:53 +09:00
Hajime Hoshi
d6c0cfe3ad ebiten: Bug fix: Compile error on the new tests
Updates #1399
2020-10-21 11:39:29 +09:00
Hajime Hoshi
dcdd1f287a mipmap: Bug fix: Too big scale tried to allocate too big images
Fixes #1399
2020-10-21 11:36:12 +09:00
Hajime Hoshi
02094c2bff mipmap: Bug fix: Scale could be Inf/0 and caused a forever loop
Fixes #1398
2020-10-21 11:01:21 +09:00
Hajime Hoshi
320282667f Update Oto to v0.6.6 2020-10-19 04:05:46 +09:00
Hajime Hoshi
3e0cf29a26 ebiten: Add an explicit type to CursorModeType consts for pkg.go.dev 2020-10-18 03:56:17 +09:00
Hajime Hoshi
ac6930f831 ebiten: Fix comments 2020-10-18 01:31:48 +09:00
Hajime Hoshi
fe558545c7 graphicsdriver/metal: Bug fix: Had to set the vsync state again at resetting
Fixes #1364
2020-10-14 01:58:36 +09:00
Hajime Hoshi
01be505f30 audio: Bug fix: Rare crash on macOS/iOS
Fixes #1386
2020-10-12 23:23:46 +09:00
Hajime Hoshi
57eab0f1a8 examples/gamepad: Bug fix: Misuse of indices and gamepad IDs 2020-10-08 01:14:14 +09:00
Hajime Hoshi
176e383de4 audio/wav: Fix a wrong comment 2020-10-07 23:23:12 +09:00
Hajime Hoshi
a440504c9e text: Bug fix: Draw didn't work correctly with non-integer glyph bounds
Fixes #1377
2020-10-03 23:08:40 +09:00