Browse Source

WindowManager: Allow compositor to have an empty bitmap as a wallpaper

This will make the compositor draw our colour wallpaper, instead
Andres Vieira 5 năm trước cách đây
mục cha
commit
19c744ab82
1 tập tin đã thay đổi với 0 bổ sung4 xóa
  1. 0 4
      Servers/WindowServer/Compositor.cpp

+ 0 - 4
Servers/WindowServer/Compositor.cpp

@@ -351,10 +351,6 @@ bool Compositor::set_wallpaper(const String& path, Function<void(bool)>&& callba
         },
 
         [this, path, callback = move(callback)](RefPtr<Gfx::Bitmap> bitmap) {
-            if (!bitmap) {
-                callback(false);
-                return;
-            }
             m_wallpaper_path = path;
             m_wallpaper = move(bitmap);
             invalidate();