Correct errors
This commit is contained in:
parent
f8468f19ba
commit
a45ba95659
|
@ -115,10 +115,10 @@ fn process_system_area(system_area: &SystemArea, sec_writer: &mut dyn SectorWrit
|
||||||
}
|
}
|
||||||
|
|
||||||
fn write_license_logo(sec_writer: &mut dyn SectorWriter, license_file: &mut BufferedInputFile) -> Result<(), Error> {
|
fn write_license_logo(sec_writer: &mut dyn SectorWriter, license_file: &mut BufferedInputFile) -> Result<(), Error> {
|
||||||
const LICENSE_LOGO_START:u64 = 0x2488;
|
const LICENSE_LOGO_START:u64 = 0x2DA8;
|
||||||
|
|
||||||
license_file.seek(SeekFrom::Start(LICENSE_LOGO_START))?;
|
license_file.seek(SeekFrom::Start(LICENSE_LOGO_START))?;
|
||||||
for _ in 0..4 {
|
for _ in 0..7 {
|
||||||
const LICENSE_SECTOR_REST:i64 = 0x120;
|
const LICENSE_SECTOR_REST:i64 = 0x120;
|
||||||
|
|
||||||
let mut license_logo_buffer = [0u8; Mode2Form1::DATA_SIZE];
|
let mut license_logo_buffer = [0u8; Mode2Form1::DATA_SIZE];
|
||||||
|
|
Loading…
Reference in New Issue