struct server *server = wl_container_of(listener, server, new_output);
struct wlr_output *wlr_output = data;
- /* Configures the output created by the backend to use our allocator
- * and our renderer. Must be done once, before commiting the output */
- if (!wlr_output_init_render(wlr_output, server->allocator, server->renderer)) {
+ /*
+ * Configures the output created by the backend to use our allocator
+ * and our renderer. Must be done once, before commiting the output
+ */
+ if (!wlr_output_init_render(wlr_output, server->allocator,
+ server->renderer)) {
wlr_log(WLR_ERROR, "unable to init output renderer");
return;
}
*/
drop_permissions();
- /* Autocreates a renderer, either Pixman, GLES2 or Vulkan for us. The user
- * can also specify a renderer using the WLR_RENDERER env var.
+ /*
+ * Autocreates a renderer, either Pixman, GLES2 or Vulkan for us. The
+ * user can also specify a renderer using the WLR_RENDERER env var.
* The renderer is responsible for defining the various pixel formats it
- * supports for shared memory, this configures that for clients. */
+ * supports for shared memory, this configures that for clients.
+ */
server->renderer = wlr_renderer_autocreate(server->backend);
if (!server->renderer) {
wlr_log(WLR_ERROR, "unable to create renderer");
wlr_renderer_init_wl_display(server->renderer, server->wl_display);
- /* Autocreates an allocator for us.
- * The allocator is the bridge between the renderer and the backend. It
- * handles the buffer creation, allowing wlroots to render onto the
- * screen */
- server->allocator = wlr_allocator_autocreate(server->backend, server->renderer);
+ /*
+ * Autocreates an allocator for us. The allocator is the bridge between
+ * the renderer and the backend. It handles the buffer creation,
+ * allowing wlroots to render onto the screen
+ */
+ server->allocator = wlr_allocator_autocreate(
+ server->backend, server->renderer);
if (!server->allocator) {
wlr_log(WLR_ERROR, "unable to create allocator");
exit(EXIT_FAILURE);