Commit graph

3066 commits

Author SHA1 Message Date
Corwin f0dd544394 make vector2d new const 2023-01-29 19:04:25 +00:00
Gwilym Kuiper 64bd1ad7dd
Fix landing 1 pixel above the ground in purple night (#381)
- [x] Changelog updated / no changelog update needed
2023-01-26 21:04:32 +00:00
Gwilym Kuiper 0e1843bf6c
Update Rust crate toml_edit to 0.18 (#379)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [toml_edit](https://togithub.com/ordian/toml_edit) | dependencies |
minor | `0.17` -> `0.18` |

---

### Release Notes

<details>
<summary>ordian/toml_edit</summary>

###
[`v0.18.0`](https://togithub.com/ordian/toml_edit/compare/v0.17.1...v0.18.0)

[Compare
Source](https://togithub.com/ordian/toml_edit/compare/v0.17.1...v0.18.0)

###
[`v0.17.1`](https://togithub.com/ordian/toml_edit/compare/v0.17.0...v0.17.1)

[Compare
Source](https://togithub.com/ordian/toml_edit/compare/v0.17.0...v0.17.1)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/agbrs/agb).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMDkuMSIsInVwZGF0ZWRJblZlciI6IjM0LjEwOS4xIn0=-->
2023-01-26 20:56:04 +00:00
Gwilym Kuiper b0314f69c5 Fix landing 1 pixel above the ground in purple night 2023-01-26 20:52:54 +00:00
GBA bot a76d44aeea Update lockfiles 2023-01-23 21:07:03 +00:00
renovate[bot] 28ce89ccc5
Update Rust crate toml_edit to 0.18 2023-01-23 21:06:03 +00:00
Gwilym Kuiper 2b91cb8773
Fix alpha not being considered when transparent_colour was absent (#377)
Previously `include_image!()` would only set transparent pixels to index
0 if a `transparent_color` was specified. However, this in unnecessary
as the transparency index is always 0.

- [X] Changelog updated / no changelog update needed
2023-01-21 20:33:02 +00:00
Eievui 09cf960121 Update CHANGELOG 2023-01-21 14:14:43 -05:00
Eievui 43279e72c3 Fix alpha not being considered when transparent_colour was absent 2023-01-21 14:12:56 -05:00
Gwilym Kuiper b76e7b9bf0 Release v0.13.0 2023-01-19 20:21:09 +00:00
Gwilym Kuiper 8789dc1dac
Derive default as now required by clippy (#376)
- [x] Changelog updated / no changelog update needed
2023-01-19 20:03:20 +00:00
Gwilym Kuiper 5b813c10d1 Derive default as now required by clippy 2023-01-15 20:49:30 +00:00
Gwilym Kuiper 01e4c6c147
Remove option to manage your own interrupts in the mixer (#361)
Simplify the audio mixer to always use the interrupt system which fixes
a soundness issue (pun intended) if you forget the mixer but not the
interrupt handler.

- [x] Changelog updated / no changelog update needed
2023-01-12 23:00:14 +00:00
Gwilym Kuiper 1cd4cc6a9e Merge remote-tracking branch 'origin/master' into remove-option-to-manage-your-own-interrupts-in-the-mixer 2023-01-12 22:30:32 +00:00
Gwilym Kuiper 7525a6f572
Make missing a vblank interrupt wait less painful (#374)
If you missed a vblank, then the next call to wait_for_vblank would
pointlessly wait rather than returning immediately. Meaning if you
missed a vblank by a few cycles, you'd be waiting for the entire next
one :(.

- [x] Changelog updated / no changelog update needed
2023-01-12 22:24:30 +00:00
Gwilym Kuiper 43aebe4092
Fix volume zero and power of 2 (#375)
Fixes #371.

If the volume was zero, the calculation for leading zeros was incorrect.
So both reduce the amount of work done for 0 volume and also count the
leading zeros correctly in the fast path.

- [x] Changelog updated / no changelog update needed
2023-01-12 22:17:16 +00:00
Gwilym Kuiper 987d7b0d2c
Add missing methods for tiled1 to allow creating backgrounds (#368)
Fixes #367

Had missed implementations to actually get the backgrounds if you were
using tiled1 mode.

- [x] Changelog updated / no changelog update needed
2023-01-12 22:14:43 +00:00
Gwilym Kuiper 009de4e660 Update test to be more relevant 2023-01-12 22:02:07 +00:00
Gwilym Kuiper 9796174a57 Add changelog entry for fixes 2023-01-12 21:55:25 +00:00
Gwilym Kuiper 8009ffea09 If volume is 0, don't actually play anything 2023-01-12 21:54:08 +00:00
Gwilym Kuiper 6ebe08e528 Fix out by 1 while calcuating leading zeros 2023-01-12 21:53:54 +00:00
Gwilym Kuiper 827afd87b9 Make wait_for_vblank syscall pub(crate) 2023-01-12 21:24:37 +00:00
Gwilym Kuiper ba8655070d Add a changelog entry for the vblank change 2023-01-12 21:24:28 +00:00
Gwilym Kuiper e50540752c Make missing a vblank interrupt wait less painful 2023-01-12 21:20:54 +00:00
Gwilym Kuiper c1f619dd1e Add changelog entry 2023-01-09 11:29:01 +00:00
Gwilym Kuiper b50d6694d9 Add missing methods for tiled1 to allow creating backgrounds
Fixes #367
2023-01-09 11:27:25 +00:00
Gwilym Kuiper 832ad13e12
Update Rust crate toml_edit to 0.17 (#364)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [toml_edit](https://togithub.com/ordian/toml_edit) | dependencies |
minor | `0.16` -> `0.17` |

---

### Release Notes

<details>
<summary>ordian/toml_edit</summary>

###
[`v0.17.1`](https://togithub.com/ordian/toml_edit/compare/v0.17.0...v0.17.1)

[Compare
Source](https://togithub.com/ordian/toml_edit/compare/v0.17.0...v0.17.1)

###
[`v0.17.0`](https://togithub.com/ordian/toml_edit/compare/v0.16.2...v0.17.0)

[Compare
Source](https://togithub.com/ordian/toml_edit/compare/v0.16.2...v0.17.0)

###
[`v0.16.2`](https://togithub.com/ordian/toml_edit/compare/v0.16.1...v0.16.2)

[Compare
Source](https://togithub.com/ordian/toml_edit/compare/v0.16.1...v0.16.2)

###
[`v0.16.1`](https://togithub.com/ordian/toml_edit/compare/v0.16.0...v0.16.1)

[Compare
Source](https://togithub.com/ordian/toml_edit/compare/v0.16.0...v0.16.1)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/agbrs/agb).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC43NC4yIiwidXBkYXRlZEluVmVyIjoiMzQuNzQuMiJ9-->
2023-01-09 11:14:28 +00:00
Corwin fd66ca8afe
Fix-and-test-2023-01-06 (#365)
Fix warnings and add test to benchmark the allocator

- [x] Changelog updated / no changelog update needed
2023-01-06 18:40:49 +00:00
Corwin e2580219c8 fix warnings in tools 2023-01-06 18:27:02 +00:00
Corwin c78b4e62f2 fix warnings in image converter 2023-01-06 18:26:03 +00:00
Corwin 4e6b4107cb and test that benchmarks the allocator 2023-01-06 18:23:42 +00:00
Gwilym Kuiper 9ab17e7cf6 Remove missed .into_iter 2023-01-03 20:57:16 +00:00
Gwilym Kuiper ec759b5b98 Remove .into_iter() suggested by clippy 2023-01-03 20:53:40 +00:00
GBA bot 1ee8434525 Update lockfiles 2023-01-03 05:38:41 +00:00
renovate[bot] 8dabca735e
Update Rust crate toml_edit to 0.17 2023-01-03 05:37:49 +00:00
Gwilym Kuiper 24f6f19ab3
Update Rust crate toml_edit to 0.16 (#362)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [toml_edit](https://togithub.com/ordian/toml_edit) | dependencies |
minor | `0.15` -> `0.16` |

---

### Release Notes

<details>
<summary>ordian/toml_edit</summary>

###
[`v0.16.0`](https://togithub.com/ordian/toml_edit/compare/v0.15.0...v0.16.0)

[Compare
Source](https://togithub.com/ordian/toml_edit/compare/v0.15.0...v0.16.0)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/agbrs/agb).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC43MS4wIiwidXBkYXRlZEluVmVyIjoiMzQuNzEuMCJ9-->
2022-12-26 09:06:53 +00:00
GBA bot 7a7f18844e Update lockfiles 2022-12-23 21:33:57 +00:00
renovate[bot] 60f3dc8796
Update Rust crate toml_edit to 0.16 2022-12-23 21:33:02 +00:00
Gwilym Kuiper d27edda339
Stop building dependency docs while testing docs (#360)
Can be quite slow documenting all the dependencies when we don't
actually need to in order to test what we're trying to test

- [x] Changelog updated / no changelog update needed
2022-12-10 00:33:30 +00:00
Gwilym Kuiper d57a1edbd4 Remove stray reference to after_vblank 2022-12-10 00:32:57 +00:00
Gwilym Kuiper 5a71db0c17 Move buffer management entirely to the mixer state 2022-12-10 00:28:30 +00:00
Gwilym Kuiper 93d0fe5700 Start refactoring towards needing &self in write_channels 2022-12-10 00:19:05 +00:00
Gwilym Kuiper a870a1deda Can set the asm buffer size just once 2022-12-10 00:01:08 +00:00
Gwilym Kuiper 6f2c1bc616 Don't need to do the mod3_estimate here too 2022-12-10 00:00:36 +00:00
Gwilym Kuiper c031e9b002 Put the MixerBuffer in IWRAM 2022-12-09 23:33:25 +00:00
Gwilym Kuiper 6c27e770b3 Changelog entry 2022-12-09 23:10:44 +00:00
Gwilym Kuiper 8efbf87c21 Get rid of references to manual interrupt work 2022-12-09 23:09:16 +00:00
Gwilym Kuiper 0f5ce17f75 Fix the examples and the games 2022-12-09 23:00:28 +00:00
Gwilym Kuiper 6df06211c6 Fix the examples 2022-12-09 22:34:16 +00:00
Gwilym Kuiper 390392a1d8 Rename timer -> fifo_timer 2022-12-09 22:28:32 +00:00