mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
WindowServer: Add 1280x720 resolution to the system menu.
This commit is contained in:
parent
d32d85e133
commit
ed957ca2e1
Notes:
sideshowbarker
2024-07-19 14:34:11 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/ed957ca2e13
1 changed files with 6 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue