mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-04 13:29:51 -05:00
Use the screen size for sizing the background.
This commit is contained in:
parent
9e4c76b530
commit
997e71eb1e
1 changed files with 1 additions and 1 deletions
|
|
@ -1113,7 +1113,7 @@ egl_compositor_create(struct wl_display *display)
|
||||||
filename = getenv("WAYLAND_BACKGROUND");
|
filename = getenv("WAYLAND_BACKGROUND");
|
||||||
if (filename == NULL)
|
if (filename == NULL)
|
||||||
filename = "background.jpg";
|
filename = "background.jpg";
|
||||||
ec->background = background_create(filename, 1280, 800);
|
ec->background = background_create(filename, ec->width, ec->height);
|
||||||
ec->overlay = overlay_create(0, ec->height, ec->width, 200);
|
ec->overlay = overlay_create(0, ec->height, ec->width, 200);
|
||||||
ec->overlay_y = ec->height;
|
ec->overlay_y = ec->height;
|
||||||
ec->overlay_target = ec->height;
|
ec->overlay_target = ec->height;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue