Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
boytacean
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
João Magalhães
boytacean
Commits
a7a30cb5
Verified
Commit
a7a30cb5
authored
1 year ago
by
João Magalhães
Browse files
Options
Downloads
Patches
Plain Diff
fix: small spell fix
parent
c9271834
No related branches found
No related tags found
1 merge request
!16
Support for Game Boy Color (CGB) 😎🖍️
Pipeline
#2598
failed
1 year ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ppu.rs
+2
-2
2 additions, 2 deletions
src/ppu.rs
with
2 additions
and
2 deletions
src/ppu.rs
+
2
−
2
View file @
a7a30cb5
...
@@ -662,7 +662,7 @@ impl Ppu {
...
@@ -662,7 +662,7 @@ impl Ppu {
// 0xFF69 — BCPD/BGPD (CGB only)
// 0xFF69 — BCPD/BGPD (CGB only)
0xff69
=>
{
0xff69
=>
{
self
.palettes_color
[
0
][
self
.palette_address_bg
as
usize
]
=
value
;
self
.palettes_color
[
0
][
self
.palette_address_bg
as
usize
]
=
value
;
//@TODO: update palette background data accordingly for the give update
//@TODO: update palette background data accordingly for the give
n
update
// index - should not be a problem
// index - should not be a problem
if
self
.auto_increment_bg
{
if
self
.auto_increment_bg
{
self
.palette_address_bg
=
(
self
.palette_address_bg
+
1
)
&
0x3f
;
self
.palette_address_bg
=
(
self
.palette_address_bg
+
1
)
&
0x3f
;
...
@@ -676,7 +676,7 @@ impl Ppu {
...
@@ -676,7 +676,7 @@ impl Ppu {
// 0xFF6B — OCPD/OBPD (CGB only)
// 0xFF6B — OCPD/OBPD (CGB only)
0xff6b
=>
{
0xff6b
=>
{
self
.palettes_color
[
1
][
self
.palette_address_obj
as
usize
]
=
value
;
self
.palettes_color
[
1
][
self
.palette_address_obj
as
usize
]
=
value
;
//@TODO: update palette object data accordingly for the give update
//@TODO: update palette object data accordingly for the give
n
update
// index - should not be a problem
// index - should not be a problem
if
self
.auto_increment_obj
{
if
self
.auto_increment_obj
{
self
.palette_address_obj
=
(
self
.palette_address_obj
+
1
)
&
0x3f
;
self
.palette_address_obj
=
(
self
.palette_address_obj
+
1
)
&
0x3f
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment