Home
last modified time | relevance | path

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

/DragonOS-0.1.9/kernel/src/driver/tty/virtual_terminal/
Dvirtual_console.rs65 pub palette: [Color; 16], field
161 palette: [Default::default(); 16], in new()
293 for (idx, color) in self.palette.iter_mut().enumerate() { in reset_palette()
1514 self.palette[i].red = self.par[j] as u16; in do_control()
1516 self.palette[i].green = self.par[j] as u16; in do_control()
1518 self.palette[i].blue = self.par[j] as u16; in do_control()
1521 self.palette[i].red = self.par[j] as u16; in do_control()
1523 self.palette[i].green = self.par[j] as u16; in do_control()
1525 self.palette[i].blue = self.par[j] as u16; in do_control()
/DragonOS-0.1.9/kernel/src/driver/video/fbdev/base/fbcon/
Dframebuffer_console.rs374 let mut palette = Vec::new(); in con_set_palette() localVariable
375 palette.resize(16, Color::default()); in con_set_palette()
377 let vc_palette = &vc_data.palette; in con_set_palette()
380 let col = palette.get_mut(idx as usize).unwrap(); in con_set_palette()
389 self.fb().set_color_map(palette)?; in con_set_palette()