-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fill window according to first palette entry
- Loading branch information
1 parent
46200e9
commit 2ff708d
Showing
9 changed files
with
101 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# 0.2C | ||
|
||
* Fill window according to first palette entry; | ||
|
||
# 0.2B | ||
|
||
* Update messages | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
Copyright 2021-2023 Gabriel Jensen. | ||
This file is part of Luma. | ||
Luma is free software: you can redistribute it | ||
and/or modify it under the terms of the GNU | ||
Affero General Public License as published by | ||
the Free Software Foundation, either version 3 | ||
of the License, or (at your option) any later | ||
version. | ||
Luma is distributed in the hope that it will be | ||
useful, but WITHOUT ANY WARRANTY; without even | ||
the implied warranty of MERCHANTABILITY or | ||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
Affero General Public License for more details. | ||
You should have received a copy of the GNU | ||
Affero General Public License along with Luma. | ||
If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
use crate::luma::PALETTE_SIZE; | ||
use crate::luma::device::Device; | ||
|
||
use std::slice; | ||
|
||
impl Device { | ||
#[allow(dead_code)] | ||
pub fn palette<'a>(&mut self) -> &'a mut [u16] { | ||
return unsafe { slice::from_raw_parts_mut(self.memory.offset(0x05000000) as *mut u16, PALETTE_SIZE) }; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
Copyright 2021-2023 Gabriel Jensen. | ||
This file is part of Luma. | ||
Luma is free software: you can redistribute it | ||
and/or modify it under the terms of the GNU | ||
Affero General Public License as published by | ||
the Free Software Foundation, either version 3 | ||
of the License, or (at your option) any later | ||
version. | ||
Luma is distributed in the hope that it will be | ||
useful, but WITHOUT ANY WARRANTY; without even | ||
the implied warranty of MERCHANTABILITY or | ||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
Affero General Public License for more details. | ||
You should have received a copy of the GNU | ||
Affero General Public License along with Luma. | ||
If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
use crate::luma::VIDEO_SIZE; | ||
use crate::luma::device::Device; | ||
|
||
use std::slice; | ||
|
||
impl Device { | ||
#[allow(dead_code)] | ||
pub fn video<'a>(&mut self) -> &'a mut [u8] { | ||
return unsafe { slice::from_raw_parts_mut(self.memory.offset(0x06000000), VIDEO_SIZE) }; | ||
} | ||
} |