Home
last modified time | relevance | path

Searched refs:palette (Results 1 – 3 of 3) sorted by relevance

/DragonOS/kernel/src/driver/tty/virtual_terminal/
H A Dvirtual_console.rs67 pub palette: [Color; 16], field
162 palette: [Default::default(); 16], in new()
292 for (idx, color) in self.palette.iter_mut().enumerate() { in reset_palette()
1509 self.palette[i].red = self.par[j] as u16; in do_control()
1511 self.palette[i].green = self.par[j] as u16; in do_control()
1513 self.palette[i].blue = self.par[j] as u16; in do_control()
1516 self.palette[i].red = self.par[j] as u16; in do_control()
1518 self.palette[i].green = self.par[j] as u16; in do_control()
1520 self.palette[i].blue = self.par[j] as u16; in do_control()
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/
H A Dframebuffer_console.rs378 let mut palette = Vec::new(); in con_set_palette() localVariable
379 palette.resize(16, Color::default()); in con_set_palette()
381 let vc_palette = &vc_data.palette; in con_set_palette()
384 let col = palette.get_mut(idx as usize).unwrap(); in con_set_palette()
393 self.fb().set_color_map(palette)?; in con_set_palette()
/DragonOS/kernel/src/arch/x86_64/init/
H A Dmultiboot2.rs113 multiboot2::FramebufferType::Indexed { palette: _ } => todo!(), in early_init_framebuffer_info()