提交 136d475b 编写于 作者: chyyuu1972's avatar chyyuu1972

change virtio-gpu resolution from 1024x768(qemu-5.2 default res) to 1280x800(qemu-7.0 default res)

上级 a30ec73d
os/src/assert/desktop.bmp

2.3 MB | W: | H:

os/src/assert/desktop.bmp

2.9 MB | W: | H:

os/src/assert/desktop.bmp
os/src/assert/desktop.bmp
os/src/assert/desktop.bmp
os/src/assert/desktop.bmp
  • 2-up
  • Swipe
  • Onion skin
......@@ -42,7 +42,7 @@ impl DrawTarget for Graphics {
let fb = self.drv.getfreambuffer();
pixels.into_iter().for_each(|px| {
let idx = ((self.point.y + px.0.y) * 1024 + self.point.x + px.0.x) as usize * 4;
let idx = ((self.point.y + px.0.y) * 1280 + self.point.x + px.0.x) as usize * 4;
if idx + 2 >= fb.len() {
return;
}
......
......@@ -32,7 +32,7 @@ impl IconController {
UPIntrFreeCell::new(IconControllerInner {
files,
graphic: Graphics {
size: Size::new(1024, 768),
size: Size::new(1280, 800),
point: Point::new(0, 0),
drv: GPU_DEVICE.clone(),
},
......
......@@ -14,7 +14,7 @@ static DT: &[u8] = include_bytes!("../assert/desktop.bmp");
lazy_static::lazy_static!(
pub static ref DESKTOP:UPIntrFreeCell<Arc<dyn Component>> = unsafe {
UPIntrFreeCell::new(Arc::new(Panel::new(Size::new(1024, 768), Point::new(0, 0))))
UPIntrFreeCell::new(Arc::new(Panel::new(Size::new(1280, 800), Point::new(0, 0))))
};
pub static ref PAD:UPIntrFreeCell<Option<Arc<Terminal>>> = unsafe {
UPIntrFreeCell::new(None)
......@@ -23,8 +23,8 @@ lazy_static::lazy_static!(
pub fn create_desktop() -> isize {
let mut p: Arc<dyn Component + 'static> =
Arc::new(Panel::new(Size::new(1024, 768), Point::new(0, 0)));
let image = ImageComp::new(Size::new(1024, 768), Point::new(0, 0), DT, Some(p.clone()));
Arc::new(Panel::new(Size::new(1280, 800), Point::new(0, 0)));
let image = ImageComp::new(Size::new(1280, 800), Point::new(0, 0), DT, Some(p.clone()));
let icon = IconController::new(ROOT_INODE.ls(), Some(p.clone()));
p.add(Arc::new(image));
p.add(Arc::new(icon));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册