change virtio-gpu resolution from 1024x768(qemu-5.2 default res) to 1280x800(qemu-7.0 default res)
This commit is contained in:
parent
f3a5a45b94
commit
35c4055dd0
4 changed files with 5 additions and 5 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue