Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
Track API changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrueger committed Oct 2, 2023
1 parent 58d6244 commit 5cdbdd8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/protocol/zmodem/headers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ impl Header {
}

pub fn write(&self, com: &mut dyn DataConnection, header_type: HeaderType, escape_ctrl_chars: bool) -> TerminalResult<usize> {
println!("send header:{:?} - {:?}", header_type, self);
//println!("send header:{:?} - {:?}", header_type, self);
com.send(self.build(header_type, escape_ctrl_chars))?;
Ok(12)
}
Expand Down
1 change: 0 additions & 1 deletion src/protocol/zmodem/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ mod zmodem_test {
use std::sync::{Arc, Mutex};

use crate::{
com::TestChannel,
protocol::{
str_from_null_terminated_utf8_unchecked, zmodem::rz::read_subpacket, FileDescriptor, Header, HeaderType, Protocol, TestStorageHandler,
TransferState, ZFrameType, Zmodem,
Expand Down
6 changes: 3 additions & 3 deletions src/ui/util/screen_modes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ impl ScreenMode {
.get_buffer_mut()
.set_font(1, BitFont::from_bytes("", C64_UPPER).unwrap());

main_window.buffer_view.lock().get_buffer_mut().palette = Palette::from_colors(C64_DEFAULT_PALETTE.to_vec());
main_window.buffer_view.lock().get_buffer_mut().palette = Palette::from_slice(&C64_DEFAULT_PALETTE);
}
ScreenMode::Antic => {
main_window.buffer_view.lock().get_buffer_mut().clear_font_table();
Expand All @@ -125,7 +125,7 @@ impl ScreenMode {
.lock()
.get_buffer_mut()
.set_font(0, BitFont::from_bytes("", ATARI).unwrap());
main_window.buffer_view.lock().get_buffer_mut().palette = Palette::from_colors(ATARI_DEFAULT_PALETTE.to_vec());
main_window.buffer_view.lock().get_buffer_mut().palette = Palette::from_slice(&ATARI_DEFAULT_PALETTE);
}
ScreenMode::Videotex => {
main_window.buffer_view.lock().get_buffer_mut().clear_font_table();
Expand All @@ -134,7 +134,7 @@ impl ScreenMode {
.lock()
.get_buffer_mut()
.set_font(0, BitFont::from_bytes("", VIEWDATA).unwrap());
main_window.buffer_view.lock().get_buffer_mut().palette = Palette::from_colors(VIEWDATA_PALETTE.to_vec());
main_window.buffer_view.lock().get_buffer_mut().palette = Palette::from_slice(&VIEWDATA_PALETTE);
}
}
main_window.buffer_view.lock().get_buffer_mut().layers[0].clear();
Expand Down

0 comments on commit 5cdbdd8

Please sign in to comment.