mirror of
https://github.com/italicsjenga/gba.git
synced 2024-12-23 19:01:30 +11:00
docs fix.
This commit is contained in:
parent
6c8213fed8
commit
b93589b8ac
|
@ -8,14 +8,14 @@
|
||||||
/// # use core::convert::TryFrom;
|
/// # use core::convert::TryFrom;
|
||||||
/// # use core::mem::size_of_val;
|
/// # use core::mem::size_of_val;
|
||||||
/// let info = UnpackInfo {
|
/// let info = UnpackInfo {
|
||||||
/// source_data_len_bytes: size_of_val(&CGA_8X8_THICK) as usize,
|
/// source_data_len_bytes: size_of_val(&CGA_8X8_THICK) as u16,
|
||||||
/// source_unit_bit_width: 1,
|
/// source_unit_bit_width: 1,
|
||||||
/// // this assumes we want to unpack to 4bpp tiles
|
/// // this assumes we want to unpack to 4bpp tiles
|
||||||
/// destination_unit_bit_width: 4,
|
/// destination_unit_bit_width: 4,
|
||||||
/// data_offset: 0,
|
/// data_offset: 0,
|
||||||
/// };
|
/// };
|
||||||
/// // our example unpacks directly to the start of VRAM.
|
/// // our example unpacks directly to the start of VRAM.
|
||||||
/// unsafe { BitUnPack(CGA_8X8_THICK.as_ptr(), 0x0600_0000 as *mut u32, &info) };
|
/// unsafe { BitUnPack(CGA_8X8_THICK.as_ptr().cast::<u8>(), 0x0600_0000 as *mut u32, &info) };
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// I am not a lawyer, but type faces are not protected by copyright in the USA.
|
/// I am not a lawyer, but type faces are not protected by copyright in the USA.
|
||||||
|
|
Loading…
Reference in a new issue