From e952a3599495b2e99c4c3a9f0c1c1bd16e21d095 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 17 Feb 2019 13:43:49 +0100 Subject: [PATCH] WindowServer: Assume wallpaper images are 1024x768. This is obviously not always the right thing to do, but it removes some confusion while using other resolutions. Eventually we're gonna need some kind of compressed image decoder. --- WindowServer/WSWindowManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WindowServer/WSWindowManager.cpp b/WindowServer/WSWindowManager.cpp index bb52b0f15c..1772a68346 100644 --- a/WindowServer/WSWindowManager.cpp +++ b/WindowServer/WSWindowManager.cpp @@ -170,7 +170,7 @@ WSWindowManager::WSWindowManager() m_cursor_bitmap_outer = CharacterBitmap::create_from_ascii(cursor_bitmap_outer_ascii, 12, 17); m_wallpaper_path = "/res/wallpapers/cool.rgb"; - m_wallpaper = GraphicsBitmap::load_from_file(m_wallpaper_path, m_screen_rect.size()); + m_wallpaper = GraphicsBitmap::load_from_file(m_wallpaper_path, { 1024, 768 }); #ifdef KERNEL ProcFS::the().add_sys_bool("wm_flash_flush", m_flash_flush);