Commit Graph

6003 Commits

Author SHA1 Message Date
Hajime Hoshi
b30d626e9a cmd/ebitnmobile: Bug fix: using ebitenmobile with EBITENMOBILE_GOMOBILE failed
Closes #1667
2021-06-09 22:51:53 +09:00
Hajime Hoshi
ca331f3c67 Revert "cmd/ebitenmobile: Remove gomobile init"
This reverts commit ecc8514d4b.

Reason: This doesn't fix the issue. gomobile assumes the existence of $GOPATH/pkg/gomobile, so leave it as it is.

Updates #1666
2021-06-09 12:58:35 +09:00
Hajime Hoshi
f4574590b5 cmd/ebitenmobile: Remove gomobile init
`gomobile init` installs gobind at $GOPATH/bin, but this is not
needed for ebitenmobile.

Updates #1666
2021-06-09 12:21:23 +09:00
Hajime Hoshi
d06e9c140c Revert "Revert 2 commits using ColorM cache"
This reverts commit 0cd0921e6f.

Reason: DrawTriangles worked fine for the reporter's purpose.

Updates #1655
2021-05-30 15:24:14 +09:00
Hajime Hoshi
4457dc1c95 Revert "Revert "ebiten: Update the comments of (*Image).SubImage""
This reverts commit 5ae307ef5a.

Reason: Mistake
2021-05-30 15:23:57 +09:00
Hajime Hoshi
5ae307ef5a Revert "ebiten: Update the comments of (*Image).SubImage"
This reverts commit d05bd7a58c.

Reason: DrawTriangles worked fine for the reporter's purpose.

Updates #1655
2021-05-30 15:18:00 +09:00
Hajime Hoshi
0cd0921e6f Revert 2 commits using ColorM cache
This reverts commit 87c8625692.
This reverts commit a6dd6196b4.

Reason: Performance regression (#1655)

Closes #1655
2021-05-30 03:14:47 +09:00
Hajime Hoshi
d05bd7a58c ebiten: Update the comments of (*Image).SubImage
Closes #1643
2021-05-13 21:24:19 +09:00
Hajime Hoshi
97fa948e5e audio/internal/readerdriver: Bug fix: createBuffer failed when the buffer size is 0
When the decoded audio size is exactly multiples of an internal
buffer size, the buffer's size becomes exactly zero when being
appended. In this case, createBuffer fails and the application
crashes.

This change fixes this issue by skipping to append a buffer in such
cases.

Closes #1635
2021-05-07 02:37:30 +09:00
Hajime Hoshi
1b5b861735 audio: Bug fix: Compile error on the tests
Updates #1630
2021-05-04 22:11:06 +09:00
Hajime Hoshi
273f2fb8f4 audio/internal/readdriver: Bug fix: Implement Suspend/Resume for browsers
Closes #1630
2021-05-04 18:51:25 +09:00
Hajime Hoshi
03b46502e0 text: Add explanation about cache limit 2021-04-27 02:36:46 +09:00
Hajime Hoshi
202fa5e6e7 text: Improve the comment 2021-04-27 02:29:04 +09:00
Hajime Hoshi
df4c8532df text: Improve the comments 2021-04-27 02:20:22 +09:00
Hajime Hoshi
ec3e10e3f7 text: Improve the comment 2021-04-27 02:00:38 +09:00
Hajime Hoshi
53e4810b6d internal/uidriver/glfw: Avoid busy loop by sleeping
Updates #1580
2021-04-24 05:20:10 +09:00
Hajime Hoshi
a0987db0c6 Remove the badge for Travis CI 2021-04-24 03:54:47 +09:00
Hajime Hoshi
099d9482f2 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:23:31 +09:00
Hajime Hoshi
f063f3ef67 internal/uidriver/glfw: Fix comments
Updates #1618
2021-04-23 03:28:31 +09:00
Hajime Hoshi
b726d19b00 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:03:16 +09:00
Hajime Hoshi
ed62bffff1 Update version to v2.1.0-rc.1 2021-04-21 22:52:31 +09:00
Hajime Hoshi
c4c331b0d5 Fix misspellings 2021-04-21 22:50:00 +09:00
Hajime Hoshi
4cb6cb9d6a internal/uidriver/glfw: Misspelling 2021-04-21 22:29:54 +09:00
Hajime Hoshi
1013ca9c66 internal/uidriver/glfw: Bug fix: A window can never be 'maximized' on fullscreen
When the window is fullscreen, calling MaximizeWindow never returned.
Apparently the attribute glfw.Maximized can never be true on the
fullscreen mode.

This change fixes the issue by checking the fullscreen state.
2021-04-21 22:25:14 +09:00
corfe83
d24313e236
internal/devicescale: Fallback to simpler logic when trying to get DPI from monitor and failing (#1600)
Closes #1612
2021-04-21 11:43:23 +09:00
Hajime Hoshi
c7dd9a4107 internal/uidriver/glfw: Bug fix: Wait for Restore/Maximize/Iconify finishes explicitly
On Linux (and probably other UNIX OSes), glfwRestore, glfwMaximize,
and glfwIconify returns even though the window state has not changed.
Wait for its finish by a for loop and glfw.PollEvents.

Closes #1608
2021-04-21 00:52:06 +09:00
Hajime Hoshi
58572fb000 internal/uidriver/glfw: Bug fix: Unexpected small window size on Linux
At the initial phase, GLFW window's GetSize seems unreliable. Do not
call it on Linux. On the other hand, this is still necessary on macOS.

Updates #1606
Closes #1609
2021-04-20 23:38:34 +09:00
Hajime Hoshi
ec5b806241 Revert "internal/uidriver/glfw: Bug fix: Delay to enable SetSize callback"
This reverts commit fbe6961528.

Reason: This doesn't fix the issue unfortunately
2021-04-20 23:01:02 +09:00
Hajime Hoshi
fbe6961528 internal/uidriver/glfw: Bug fix: Delay to enable SetSize callback
On Linux, the SetSize callback is invoked with an unexpected value
at the initial phase. Just delay it until the initialization
finishes.
2021-04-20 22:53:48 +09:00
Hajime Hoshi
34be0371be 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:48:46 +09:00
Hajime Hoshi
47f569e473 internal/uidriver/glfw: Bug fix: setWindowSize could not accept a fullscreen size 2021-04-20 20:09:04 +09:00
Hajime Hoshi
ee8bfcd837 internal/uidriver/glfw: Bug fix: Disable the SetSize callback for most of GLFW window functions
Updates #1576
Updates #1585
Closes #1606
2021-04-20 18:32:39 +09:00
Hajime Hoshi
74018348c0 internal/uidriver/js: Update the error message
Updates #1604
2021-04-20 12:47:38 +09:00
Hajime Hoshi
191cc667e1 internal/uidriver/js: Add an error message when pointerlockerror happens
Updates #1604
2021-04-20 12:22:33 +09:00
Hajime Hoshi
18ce150495 internal/uidriver/glfw: Bug fix: getWindowSizeLimits should return -1 when the original value was -1
Updates #1602
2021-04-20 11:05:17 +09:00
Hajime Hoshi
08c3025560 audio/internal/readerdriver: Refactoring 2021-04-20 03:20:29 +09:00
Hajime Hoshi
7f8c3a13b3 examples/audiopanning: Bug fix: Align the buffer size
Closes #1598
2021-04-20 02:47:14 +09:00
Hajime Hoshi
24dc20e80e audio/internal/readerdriver: Bug fix: Need to align the buffer size 2021-04-20 02:39:33 +09:00
Hajime Hoshi
e650e71d8c audio/internal/readerdriver: Bug fix: ReadFull could get stuck
If the source io.Reader's implementation is not good (e.g., Read
returns 0 if the buffer size is not multiples of 4), io.ReadFull
gets stuck forever. Instead, use reguler Read with a decent amount
of bytes buffer.

Closes #1599
2021-04-20 01:29:15 +09:00
Hajime Hoshi
5b96439fed Revert "examples/audiopanning: Bug fix: Out of range at reading bytes"
This reverts commit b1545b115c.

Reason: Calling UnreadByte twice is illegal

Updates #1598
2021-04-20 00:20:21 +09:00
Hajime Hoshi
146678596b audio/internal/readerdriver: Bug fix: Invoke onReady for go2cpp
Updates #1599
2021-04-19 23:59:31 +09:00
Hajime Hoshi
ea9d64f5b8 audio: Bug fix: Need to call setReady from the reader player side
Updates #1599
2021-04-19 23:56:08 +09:00
Hajime Hoshi
b1545b115c examples/audiopanning: Bug fix: Out of range at reading bytes
Closes #1598
2021-04-19 22:06:00 +09:00
Hajime Hoshi
7e1943dba7 Revert "ebiten: Do not skip Draw when vsync is disabled"
This reverts commit 7dda2d8e4b.

Reason: #1595: FPS doesn't match with the number of Draw calls per second when vsync is off.

Updates #1520
Closes #1595
2021-04-19 11:34:59 +09:00
Hajime Hoshi
dcaa1f9722 internal/uidriver/glfw: Bug fix: Need to reregister the callback after recreating the window
Updates #1588
Closes #1593
2021-04-19 01:28:59 +09:00
Hajime Hoshi
73f90f324f ebiten: Bug fix: ForceUpdate could be called before initialization
Closes #1591
2021-04-19 00:35:32 +09:00
Hajime Hoshi
2f451e6014 examples/windowsize: Enable to specify either maxwindowsize or minwindowsize 2021-04-18 23:21:34 +09:00
Hajime Hoshi
5cc8d8476b ebiten: Bug fix: Ignore the outside size when they are 0 at Layout
Closes #1589
2021-04-18 23:02:31 +09:00
Hajime Hoshi
fd80583dd0 internal/uidriver/glfw: Bug fix: Defer SetIcon on the fullscreen mode
Closes #1587
2021-04-18 22:28:01 +09:00
Hajime Hoshi
7e61189c3d internal/uidriver/glfw: Bug fix: Avoid registring C callbacks too often
Instead of registring/unregistering callbacks, use a boolean flag.

Closes #1588
2021-04-18 22:07:29 +09:00