mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-14 08:56:26 -05:00
parent
cedd151e17
commit
7bb8512afb
2 changed files with 12 additions and 7 deletions
|
|
@ -431,11 +431,14 @@ int main(int argc, char **argv) {
|
|||
return 1;
|
||||
}
|
||||
|
||||
assert(cursor_theme = wl_cursor_theme_load(NULL, 16, shm));
|
||||
cursor_theme = wl_cursor_theme_load(NULL, 16, shm);
|
||||
assert(cursor_theme);
|
||||
struct wl_cursor *cursor;
|
||||
assert(cursor = wl_cursor_theme_get_cursor(cursor_theme, "crosshair"));
|
||||
cursor = wl_cursor_theme_get_cursor(cursor_theme, "crosshair");
|
||||
assert(cursor);
|
||||
cursor_image = cursor->images[0];
|
||||
assert(cursor_surface = wl_compositor_create_surface(compositor));
|
||||
cursor_surface = wl_compositor_create_surface(compositor)
|
||||
assert(cursor_surface);
|
||||
|
||||
EGLint attribs[] = { EGL_ALPHA_SIZE, 8, EGL_NONE };
|
||||
wlr_egl_init(&egl, EGL_PLATFORM_WAYLAND_EXT, display,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue