Commit Graph

5580 Commits

Author SHA1 Message Date
Hajime Hoshi
1eb67b8207 internal/uidriver/glfw: Avoid busy loop by sleeping
Updates #1580
2021-04-24 05:21:43 +09:00
Hajime Hoshi
1b33d11d4a 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:26:05 +09:00
Hajime Hoshi
875670382d internal/uidriver/glfw: Fix comments
Updates #1618
2021-04-23 03:29:41 +09:00
Hajime Hoshi
e574999fe6 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:09:17 +09:00
corfe83
658a2eabdf internal/devicescale: Fallback to simpler logic when trying to get DPI from monitor and failing (#1600)
Closes #1612
2021-04-21 11:44:30 +09:00
Hajime Hoshi
0cf38ce80a 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:49 +09:00
Hajime Hoshi
9c765a5d15 examples/audiopanning: Bug fix: Align the buffer size
Closes #1598
2021-04-20 02:49:32 +09:00
Hajime Hoshi
e5c70f8ae6 Revert "examples/audiopanning: Bug fix: Out of range at reading bytes"
This reverts commit cf2fc7a998.

Reason: Calling UnreadByte twice is illegal

Updates #1598
2021-04-20 00:21:27 +09:00
Hajime Hoshi
cf2fc7a998 examples/audiopanning: Bug fix: Out of range at reading bytes
Closes #1598
2021-04-19 22:15:30 +09:00
Hajime Hoshi
2121f7d9c6 ebiten: Bug fix: Ignore the outside size when they are 0 at Layout
Closes #1589
2021-04-18 23:16:45 +09:00
Hajime Hoshi
ac2b3620b9 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:24:25 +09:00
Hajime Hoshi
343e6d3033 examples/shader: Add build tags for the generated files
Closes #1581
2021-04-18 18:08:39 +09:00
Hajime Hoshi
16d3085884 internal/uidriver/glfw: Bug fix: FramebufferSize callback was not called when the window size was not changed
Closes #1580
2021-04-18 15:50:34 +09:00
Hajime Hoshi
75b0e91228 internal/uidriver/js: Bug fix: CursorPosition crashed before the main loop on browsers
Closes #1559
2021-04-18 04:59:10 +09:00
Hajime Hoshi
29cb3dceb5 ebiten: Bug fix: Wrong documentation about SetScreenClearedEveryFrame
Closes #1555
2021-03-30 00:32:51 +09:00
Hajime Hoshi
af4866a87d Skip the Wasm tests on Ubuntu 2021-03-27 02:55:05 +09:00
Hajime Hoshi
918cd5b666 Update README about input devices on mobiles
Updates #1539
2021-03-27 00:39:05 +09:00
Hajime Hoshi
732fd5da0d 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:56:54 +09:00
Humphrey Shotton
a41b15850d internal/graphicscommand: fix missing graphicscommand log (#1543)
Closes #1544
2021-03-15 02:15:35 +09:00
Hajime Hoshi
1a2b308ae3 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:20 +09:00
Hajime Hoshi
5c5a2cf0f8 ebiten: Update input API comments for Android
Closes #1539
2021-03-14 18:05:06 +09:00
Hajime Hoshi
e72821cdd7 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:54 +09:00
Hajime Hoshi
0dd5cc3097 examples/audiopanning: Bug fix: Fix several issues
* The stream was not looped.
 * The shown position was wrong.

Closes #1502
2021-02-22 02:02:28 +09:00
Hajime Hoshi
464d4efcb1 internal/graphicsdriver/opengl/gl: Bug fix: Remove unsafe reflect usage
Closes #1495
2021-02-17 14:59:04 +09:00
Hajime Hoshi
115c11232e 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:27 +09:00
Hajime Hoshi
c593c3f266 cmd/ebitenmobile: Use the better way to go-get dependencies
Updates #1487
2021-02-12 02:47:02 +09:00
Hajime Hoshi
7cd09649fc cmd/ebitenmobile: Bug fix: Record go.sum correctly to build gomobile/gobind
Closes #1487
2021-02-10 02:22:02 +09:00
Hajime Hoshi
ea9c9cd7e2 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:20 +09:00
Hajime Hoshi
82746e3c12 cmd/ebitenmobile, internal/devicescale: Experimental fix of the display density
Closes #1481
2021-02-07 14:18:01 +09:00
Hajime Hoshi
345c25f204 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:42:05 +09:00
Hajime Hoshi
82050d6ac1 audio: Bug fix: Deadlock at acquiring the semaphore
Closes #1469
2021-01-23 23:11:46 +09:00
Hajime Hoshi
d655d5f66c Use the more stable version of wasmbrowsertest 2021-01-05 12:45:04 +09:00
Hajime Hoshi
f8a1bba118 packing: Bug fix: Extend could create a too big page
Closes #1454
2020-12-31 17:35:40 +09:00
Hajime Hoshi
8511159316 uidriver/glfw: Bug fix: OpenGL was adopted unexpectedly on macOS Big Sur
Fixes #1429
2020-12-09 10:22:15 +09:00
Hajime Hoshi
63cfd9151c Update Oto to v0.6.8
Fixes #1424
2020-11-29 13:02:19 +09:00
Hajime Hoshi
6a24d6b2c6 uidriver/glfw: Bug fix: Do not iconify the fullscreen window automatically
Fixes #1405
2020-11-22 22:42:21 +09:00
Hajime Hoshi
4c7eaeaf02 mipmap: Bug fix: Too big scale tried to allocate too big images
Fixes #1399
2020-10-21 11:33:52 +09:00
Hajime Hoshi
356391a36c mipmap: Bug fix: Scale could be Inf/0 and caused a forever loop
Fixes #1398
2020-10-21 10:57:41 +09:00
Hajime Hoshi
75232e315c Update Oto to v0.6.6 2020-10-19 04:06:12 +09:00
Hajime Hoshi
00bdf71ec3 ebiten: Add an explicit type to CursorModeType consts for pkg.go.dev 2020-10-18 03:56:34 +09:00
Hajime Hoshi
0c0981c391 ebiten: Fix comments 2020-10-18 01:31:32 +09:00
Hajime Hoshi
09a6769fa7 Update README.md 2020-10-15 23:25:20 +09:00
Hajime Hoshi
2afeb86985 graphicsdriver/metal: Bug fix: Had to set the vsync state again at resetting
Fixes #1364
2020-10-14 01:59:03 +09:00
Hajime Hoshi
9fdf60a7ed audio: Bug fix: Rare crash on macOS/iOS
Fixes #1386
2020-10-12 23:24:12 +09:00
Hajime Hoshi
1508fd33e8 audio: Remove returning values from Play/Pause 2020-10-10 23:45:59 +09:00
Hajime Hoshi
a5e4d53859 Update Ebiten to v2.0.0-rc.1 2020-10-10 23:08:34 +09:00
Hajime Hoshi
dfeb48b154 examples/windowsize: Fix the message 2020-10-10 23:00:49 +09:00
Hajime Hoshi
5d4c57c328 Update dependencies 2020-10-10 22:18:41 +09:00
Hajime Hoshi
7f55fdf769 uidriver/js: Stop auto-focusing on loading when the page is in an iframe
Fixes #1373
2020-10-10 15:52:33 +09:00
Hajime Hoshi
10f394f72b examples/wav: Play SE immediately 2020-10-10 05:03:51 +09:00