Hajime Hoshi
12f42544dd
internal/ui: refactoring: simplify logic by removing setSizeCallbackEnabled
...
Closes #1816
2022-09-25 23:48:40 +09:00
Hajime Hoshi
70ebd34d99
internal/ui: refactoring: separate setWindowSizeInDIPImpl to setWindowSizeInDIP and setFullscreen
2022-09-25 22:55:56 +09:00
Hajime Hoshi
f0dbf86799
internal/ui: refactoring: adjust the width earlier
2022-09-25 22:34:14 +09:00
Hajime Hoshi
c7deed6e72
internal/ui: add setFullscreen
2022-09-25 22:31:26 +09:00
Hajime Hoshi
e47f9ac38f
internal/ui: bug fix: wrong bit operations
...
Closes #2349
2022-09-25 20:10:37 +09:00
Hajime Hoshi
9302230fef
internal/ui: refactoring
2022-09-25 19:56:53 +09:00
Hajime Hoshi
98076bd512
internal/ui: refactoring: simplify initializing fullscreen
2022-09-25 18:28:57 +09:00
Hajime Hoshi
6167cc4f54
internal/ui: remove unnecessary function calls
...
updateSize was introduced at 7eff5cbd4a
, but
apparently calling setWindowSizeInDIP was originally not needed.
2022-09-25 18:19:35 +09:00
Hajime Hoshi
25405783a7
internal/ui: refactoring
...
Updates #1816
2022-09-25 02:05:26 +09:00
Hajime Hoshi
b2f3d39acf
internal/restorable: add color tests at TestAllowWritePixelsForPartAfterDrawTriangles
...
Updates #2346
2022-09-24 22:09:08 +09:00
Hajime Hoshi
1703297f37
internal/shader: add a test for type shadowing
2022-09-24 19:00:23 +09:00
Hajime Hoshi
7f91a681e3
internal/shader: check type redeclaration
2022-09-24 18:56:01 +09:00
Hajime Hoshi
0c19b8d7ae
ebitenutil: typo
2022-09-24 13:53:10 +09:00
Hajime Hoshi
ac651def3b
ebiten: typo
2022-09-24 09:37:59 +09:00
Hajime Hoshi
a031389275
.github/workflows/site: update the redirection
2022-09-23 19:30:59 +09:00
Hajime Hoshi
284c9fcc7f
update URLs in comments
2022-09-23 19:09:25 +09:00
Hajime Hoshi
d3457e8cf7
update the website from ebiten.org to ebitengine.org
2022-09-23 19:01:11 +09:00
Hajime Hoshi
cda6fa156f
examples/flappy: reorder build tags
2022-09-20 23:56:27 +09:00
Hajime Hoshi
c5867c3357
internal/ui: bug fix: avoid 0 as arguments for Layout
...
Updates #2340
2022-09-20 22:50:39 +09:00
Hajime Hoshi
b5ddee3e4a
internal/ui: bug fix: reentering updateImpl caused double unlocking
...
updateImpl can be invoked in multiple ways. This should have been
protected by a mutex, or this caused unexpected reentrance.
Closes #2339
2022-09-20 13:19:43 +09:00
divVerent
47de8027b9
internal/gamepaddb: fix mapping support for e.g. dpleft:-a0
. ( #2335 )
...
SDL interprets this as "map -1 to 1, map 0 to -1", so we should do the same.
This fix contains two parts:
* Fix the intended output range.
* Also fix the formula to map a range to a range.
The fix does not change behavior if a "-a" mapping isn't used, as in any other case max-min == 1 or max+min == 0.
Fixes #2334
2022-09-20 00:34:46 +09:00
Hajime Hoshi
c4ff7ef480
all: update from library to engine
2022-09-20 00:28:45 +09:00
Hajime Hoshi
c7fcfe5bf7
internal/graphicsdriver/directx: refactoring
...
This makes more explicit that the pixels are sent after the slice
for the pixels finishes modification.
2022-09-19 00:31:44 +09:00
Hajime Hoshi
cfdf59ef8d
internal/graphicsdriver/directx: revert changes to remove GetCopyableFootprints
...
This reverts these commits
* ccddd4ee20
* 8e40c2ce7e
* 2eb1efe3cc
Without GetCopyableFootprints, the test results on 32bit Windows seemed
much more flaky. This didn't fix the memory issue like #2294 anyway.
2022-09-19 00:26:59 +09:00
Hajime Hoshi
ccddd4ee20
internal/graphicsdriver/directx: refactoring: make the lifetime of uploadingStagingBuffer more explicit
2022-09-19 00:16:53 +09:00
Hajime Hoshi
8e40c2ce7e
internal/graphicsdriver/directx: refactoring
2022-09-19 00:06:43 +09:00
Hajime Hoshi
2eb1efe3cc
internal/graphicsdriver/directx: stop using GetCopyableFootprints
...
GetCopyableFootprints seems very conservative and returns a quite
big memory size. Instead of using the info from GetCopyableFootprints
let's use our own minimum footprint.
2022-09-18 23:10:15 +09:00
Hajime Hoshi
cd9477491d
internal/gamepad: refactoring
2022-09-18 20:09:10 +09:00
Hajime Hoshi
a347b618e0
.github/workflows/vettools: typo
2022-09-18 18:24:53 +09:00
Hajime Hoshi
78802f18d9
internal/glfwwin: remove GetProcAddress
2022-09-18 18:04:02 +09:00
Hajime Hoshi
8d5f5a17d4
.github/workflows/vettools: fix import paths
2022-09-18 17:46:03 +09:00
Hajime Hoshi
4865f0a3da
.github/workflows/vettools: add mroe analysis
2022-09-18 17:41:49 +09:00
Hajime Hoshi
2f222433c0
.github/workflows/vettools: update the Go version in go.mod
2022-09-18 17:38:34 +09:00
Hajime Hoshi
08d54e9751
.github/workflows/vettools: add a static analysis for image importing
...
Updates #2336
Closes #2337
2022-09-18 17:21:47 +09:00
Hajime Hoshi
8de4a59416
ebitenutil: add comments and imports
...
Updates #2336
2022-09-18 15:43:56 +09:00
Hajime Hoshi
acda9f2a17
ebitenutil: add tests for NewImageFromFileSystem
2022-09-17 23:30:12 +09:00
Hajime Hoshi
67400d242b
examples/resource: use go:embed for images
...
Closes #1258
2022-09-17 23:27:45 +09:00
Hajime Hoshi
5305735055
examples/resource: use go:embed for audio and fonts
...
Updates #1258
2022-09-17 22:15:40 +09:00
Hajime Hoshi
80407fb9d6
audio/vorbis: use go:embed
...
Updates #1258
2022-09-17 21:58:32 +09:00
Hajime Hoshi
129f201be4
internal/gamepaddb: use go:embed
...
Updates #1258
2022-09-17 21:02:07 +09:00
TotallyGamerJet
043397c20e
internal/ui: remove Cgo on darwin in ui_glfw_darwin.go ( #2329 )
...
Updates #1162
2022-09-16 11:53:46 +09:00
Hajime Hoshi
45b2bd7b2b
internal/graphicsdriver/metal/mtl: remove a TODO comment
2022-09-16 11:48:59 +09:00
Hajime Hoshi
53df5aaaf0
internal/cocoa: rename _cmd
to cmd
2022-09-16 02:32:12 +09:00
Hajime Hoshi
963eb2756a
all: fix TODO comments
2022-09-16 02:02:02 +09:00
Hajime Hoshi
b13fa2817c
internal/gamepad: clean up codes for Darwin
...
* Removes redundant assignments.
* Fixes types for the Apple libraries.
Updates #1162
2022-09-16 00:25:51 +09:00
TotallyGamerJet
4a569be6f6
internal/gamepad: remove Cgo on darwin ( #2330 )
...
Updates #1162
2022-09-16 00:11:59 +09:00
Hajime Hoshi
3cafb0f6fd
ebitenutil: use go:embed
...
Updates #1258
2022-09-15 23:25:24 +09:00
Hajime Hoshi
289129c9e5
examples/shader: use go:embed
...
Updates #1258
2022-09-15 23:18:49 +09:00
Hajime Hoshi
d57cd39bb9
examples/resources/images/keyboard: fix comment
2022-09-15 23:18:49 +09:00
Hajime Hoshi
6e6145541d
examples/keyboard/keyboard: use go:embed
...
Updates #1258
2022-09-15 22:58:57 +09:00