WindowServer: Add 2560x1440 resolution option.

Also expand the QEMU VGA memory size to 64 MB, since otherwise we won't
have enough memory for double-buffering the screen.
This commit is contained in:
Andreas Kling 2019-05-24 14:02:17 +02:00
parent 9823354754
commit abbcdba72e
2 changed files with 5 additions and 0 deletions

View file

@ -13,6 +13,7 @@ elif [ "$1" = "qn" ]; then
$SERENITY_QEMU_BIN -s -m $ram_size \
$SERENITY_EXTRA_QEMU_ARGS \
-d cpu_reset,guest_errors \
-device VGA,vgamem_mb=64 \
-debugcon stdio \
-device e1000 \
-kernel kernel \
@ -23,6 +24,7 @@ elif [ "$1" = "qtap" ]; then
sudo $SERENITY_QEMU_BIN -s -m $ram_size \
$SERENITY_EXTRA_QEMU_ARGS \
-d cpu_reset,guest_errors \
-device VGA,vgamem_mb=64 \
-debugcon stdio \
-object filter-dump,id=hue,netdev=br0,file=e1000.pcap \
-netdev tap,ifname=tap0,id=br0 \
@ -35,6 +37,7 @@ else
$SERENITY_QEMU_BIN -s -m $ram_size \
$SERENITY_EXTRA_QEMU_ARGS \
-d cpu_reset,guest_errors \
-device VGA,vgamem_mb=64 \
-debugcon stdio \
-object filter-dump,id=hue,netdev=breh,file=e1000.pcap \
-netdev user,id=breh,hostfwd=tcp:127.0.0.1:8888-192.168.5.2:8888 \

View file

@ -126,6 +126,7 @@ WSWindowManager::WSWindowManager()
m_system_menu->add_item(make<WSMenuItem>(*m_system_menu, 103, "1280x720"));
m_system_menu->add_item(make<WSMenuItem>(*m_system_menu, 104, "1440x900"));
m_system_menu->add_item(make<WSMenuItem>(*m_system_menu, 105, "1920x1080"));
m_system_menu->add_item(make<WSMenuItem>(*m_system_menu, 106, "2560x1440"));
m_system_menu->add_item(make<WSMenuItem>(*m_system_menu, WSMenuItem::Separator));
m_system_menu->add_item(make<WSMenuItem>(*m_system_menu, 200, "About..."));
m_system_menu->on_item_activation = [this, apps] (WSMenuItem& item) {
@ -143,6 +144,7 @@ WSWindowManager::WSWindowManager()
case 103: set_resolution(1280, 720); break;
case 104: set_resolution(1440, 900); break;
case 105: set_resolution(1920, 1080); break;
case 106: set_resolution(2560, 1440); break;
}
if (item.identifier() == 200) {
if (fork() == 0) {