WindowServer: Initial wallpaper must not be NULL
This used to crash 'pape -c' on a fresh image. Note that the special value is '', the empty string, and *not* NULL, i.e. an unset string. An empty string implies that the wallpaper is not an image, but rather a solid color.
This commit is contained in:
parent
3852168c84
commit
4427da989f
Notes:
sideshowbarker
2024-07-19 01:00:02 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/4427da989f4 Pull-request: https://github.com/SerenityOS/serenity/pull/4351 Reviewed-by: https://github.com/bugaevc
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ private:
|
|||
Gfx::IntRect m_last_dnd_rect;
|
||||
Gfx::IntRect m_last_geometry_label_rect;
|
||||
|
||||
String m_wallpaper_path;
|
||||
String m_wallpaper_path { "" };
|
||||
WallpaperMode m_wallpaper_mode { WallpaperMode::Unchecked };
|
||||
RefPtr<Gfx::Bitmap> m_wallpaper;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue