mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-12 13:29:55 -05:00
Fall back to solid color background if not image is found.
This commit is contained in:
parent
d2412e2c2e
commit
5b7f832eab
1 changed files with 5 additions and 1 deletions
|
|
@ -481,7 +481,10 @@ repaint(void *data)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
draw_surface(ec->background);
|
if (ec->background)
|
||||||
|
draw_surface(ec->background);
|
||||||
|
else
|
||||||
|
glClear(GL_COLOR_BUFFER_BIT);
|
||||||
|
|
||||||
es = container_of(ec->surface_list.next,
|
es = container_of(ec->surface_list.next,
|
||||||
struct egl_surface, link);
|
struct egl_surface, link);
|
||||||
|
|
@ -1027,6 +1030,7 @@ egl_compositor_create(struct wl_display *display)
|
||||||
glLoadIdentity();
|
glLoadIdentity();
|
||||||
glOrtho(0, ec->width, ec->height, 0, 0, 1000.0);
|
glOrtho(0, ec->width, ec->height, 0, 0, 1000.0);
|
||||||
glMatrixMode(GL_MODELVIEW);
|
glMatrixMode(GL_MODELVIEW);
|
||||||
|
glClearColor(0, 0, 0.2, 1);
|
||||||
|
|
||||||
wl_display_set_compositor(display, &ec->base, &compositor_interface);
|
wl_display_set_compositor(display, &ec->base, &compositor_interface);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue