WindowServer: Add 1280x720 resolution to the system menu.

This commit is contained in:
Andreas Kling 2019-04-28 05:24:52 +02:00
parent d32d85e133
commit ed957ca2e1
Notes: sideshowbarker 2024-07-19 14:34:11 +09:00

View file

@ -101,8 +101,9 @@ WSWindowManager::WSWindowManager()
m_system_menu->add_item(make<WSMenuItem>(*m_system_menu, 100, "640x480"));
m_system_menu->add_item(make<WSMenuItem>(*m_system_menu, 101, "800x600"));
m_system_menu->add_item(make<WSMenuItem>(*m_system_menu, 102, "1024x768"));
m_system_menu->add_item(make<WSMenuItem>(*m_system_menu, 103, "1440x900"));
m_system_menu->add_item(make<WSMenuItem>(*m_system_menu, 104, "1920x1080"));
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, WSMenuItem::Separator));
m_system_menu->add_item(make<WSMenuItem>(*m_system_menu, 200, "About..."));
m_system_menu->on_item_activation = [this] (WSMenuItem& item) {
@ -124,8 +125,9 @@ WSWindowManager::WSWindowManager()
case 100: set_resolution(640, 480); break;
case 101: set_resolution(800, 600); break;
case 102: set_resolution(1024, 768); break;
case 103: set_resolution(1440, 900); break;
case 104: set_resolution(1920, 1080); break;
case 103: set_resolution(1280, 720); break;
case 104: set_resolution(1440, 900); break;
case 105: set_resolution(1920, 1080); break;
}
if (item.identifier() == 200) {
if (fork() == 0) {