mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-21 05:34:09 -04:00
treewide: fix typos
Signed-off-by: Diego Viola <diego.viola@gmail.com>
This commit is contained in:
parent
1ce992d7cb
commit
6d9aa17572
13 changed files with 15 additions and 15 deletions
|
|
@ -2139,7 +2139,7 @@ struct wlr_drm_lease *wlr_drm_create_lease(struct wlr_output **outputs,
|
||||||
wlr_log(WLR_DEBUG, "Connector %d", conn->id);
|
wlr_log(WLR_DEBUG, "Connector %d", conn->id);
|
||||||
|
|
||||||
if (!drm_connector_alloc_crtc(conn)) {
|
if (!drm_connector_alloc_crtc(conn)) {
|
||||||
wlr_log(WLR_ERROR, "Failled to allocate connector CRTC");
|
wlr_log(WLR_ERROR, "Failed to allocate connector CRTC");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -246,7 +246,7 @@ void init_seat_touch(struct wlr_wl_seat *seat) {
|
||||||
|
|
||||||
struct wlr_wl_output *output;
|
struct wlr_wl_output *output;
|
||||||
wl_list_for_each(output, &seat->backend->outputs, link) {
|
wl_list_for_each(output, &seat->backend->outputs, link) {
|
||||||
/* Multi-output touch not supproted */
|
/* Multi-output touch not supported */
|
||||||
seat->wlr_touch.output_name = strdup(output->wlr_output.name);
|
seat->wlr_touch.output_name = strdup(output->wlr_output.name);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,7 @@ struct wlr_color_transform_lut_3x1d *color_transform_lut_3x1d_from_base(
|
||||||
* Create a simplified / normalized wlr_color_transform pipeline.
|
* Create a simplified / normalized wlr_color_transform pipeline.
|
||||||
* `transforms` may contain NULL transforms, they will be interpreted as the
|
* `transforms` may contain NULL transforms, they will be interpreted as the
|
||||||
* identity transform, and removed.
|
* identity transform, and removed.
|
||||||
* `*result` may be set to a tranform of a type different from
|
* `*result` may be set to a transform of a type different from
|
||||||
* `wlr_color_transform_pipeline`, or to NULL if all input transforms are NULL
|
* `wlr_color_transform_pipeline`, or to NULL if all input transforms are NULL
|
||||||
*/
|
*/
|
||||||
bool color_transform_compose(struct wlr_color_transform **result,
|
bool color_transform_compose(struct wlr_color_transform **result,
|
||||||
|
|
|
||||||
|
|
@ -224,7 +224,7 @@ struct wlr_vk_render_buffer_out {
|
||||||
bool transitioned;
|
bool transitioned;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Renderer-internal represenation of an wlr_buffer imported for rendering.
|
// Renderer-internal representation of an wlr_buffer imported for rendering.
|
||||||
struct wlr_vk_render_buffer {
|
struct wlr_vk_render_buffer {
|
||||||
struct wlr_buffer *wlr_buffer;
|
struct wlr_buffer *wlr_buffer;
|
||||||
struct wlr_addon addon;
|
struct wlr_addon addon;
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@
|
||||||
/**
|
/**
|
||||||
* A still cursor image.
|
* A still cursor image.
|
||||||
*
|
*
|
||||||
* The buffer contains pixels layed out in a packed DRM_FORMAT_ARGB8888 format.
|
* The buffer contains pixels laid out in a packed DRM_FORMAT_ARGB8888 format.
|
||||||
*/
|
*/
|
||||||
struct wlr_xcursor_image {
|
struct wlr_xcursor_image {
|
||||||
uint32_t width; /* actual width */
|
uint32_t width; /* actual width */
|
||||||
|
|
|
||||||
|
|
@ -156,7 +156,7 @@ static void init_dmabuf_formats(struct wlr_egl *egl) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (modifiers_len == 0) {
|
if (modifiers_len == 0) {
|
||||||
// Asume the linear layout is supported if the driver doesn't
|
// Assume the linear layout is supported if the driver doesn't
|
||||||
// explicitly say otherwise
|
// explicitly say otherwise
|
||||||
wlr_drm_format_set_add(&egl->dmabuf_texture_formats, fmt,
|
wlr_drm_format_set_add(&egl->dmabuf_texture_formats, fmt,
|
||||||
DRM_FORMAT_MOD_LINEAR);
|
DRM_FORMAT_MOD_LINEAR);
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ static void render_pass_add_texture(struct wlr_render_pass *wlr_pass,
|
||||||
if (options->transform != WL_OUTPUT_TRANSFORM_NORMAL ||
|
if (options->transform != WL_OUTPUT_TRANSFORM_NORMAL ||
|
||||||
src_box_transformed.width != dst_box.width ||
|
src_box_transformed.width != dst_box.width ||
|
||||||
src_box_transformed.height != dst_box.height) {
|
src_box_transformed.height != dst_box.height) {
|
||||||
// Cosinus/sinus values are extact integers for enum wl_output_transform entries
|
// Cosinus/sinus values are exact integers for enum wl_output_transform entries
|
||||||
int tr_cos = 1, tr_sin = 0, tr_x = 0, tr_y = 0;
|
int tr_cos = 1, tr_sin = 0, tr_x = 0, tr_y = 0;
|
||||||
switch (options->transform) {
|
switch (options->transform) {
|
||||||
case WL_OUTPUT_TRANSFORM_NORMAL:
|
case WL_OUTPUT_TRANSFORM_NORMAL:
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#version 450
|
#version 450
|
||||||
|
|
||||||
// we use a mat4 since it uses the same size as mat3 due to
|
// we use a mat4 since it uses the same size as mat3 due to
|
||||||
// alignment. Easier to deal with (tighly-packed) mat4 though.
|
// alignment. Easier to deal with (tightly-packed) mat4 though.
|
||||||
layout(push_constant, row_major) uniform UBO {
|
layout(push_constant, row_major) uniform UBO {
|
||||||
mat4 proj;
|
mat4 proj;
|
||||||
vec2 uv_offset;
|
vec2 uv_offset;
|
||||||
|
|
|
||||||
|
|
@ -189,7 +189,7 @@ void vulkan_texture_destroy(struct wlr_vk_texture *texture) {
|
||||||
// when we recorded a command to fill this image _this_ frame,
|
// when we recorded a command to fill this image _this_ frame,
|
||||||
// it has to be executed before the texture can be destroyed.
|
// it has to be executed before the texture can be destroyed.
|
||||||
// Add it to the renderer->destroy_textures list, destroying
|
// Add it to the renderer->destroy_textures list, destroying
|
||||||
// _after_ the stage command buffer has exectued
|
// _after_ the stage command buffer has executed
|
||||||
if (texture->last_used_cb != NULL) {
|
if (texture->last_used_cb != NULL) {
|
||||||
assert(texture->destroy_link.next == NULL); // not already inserted
|
assert(texture->destroy_link.next == NULL); // not already inserted
|
||||||
wl_list_insert(&texture->last_used_cb->destroy_textures,
|
wl_list_insert(&texture->last_used_cb->destroy_textures,
|
||||||
|
|
|
||||||
|
|
@ -290,7 +290,7 @@ VkPhysicalDevice vulkan_find_drm_phdev(struct wlr_vk_instance *ini, int drm_fd)
|
||||||
log_phdev(&phdev_props);
|
log_phdev(&phdev_props);
|
||||||
|
|
||||||
if (phdev_props.apiVersion < VK_API_VERSION_1_1) {
|
if (phdev_props.apiVersion < VK_API_VERSION_1_1) {
|
||||||
// NOTE: we could additionaly check whether the
|
// NOTE: we could additionally check whether the
|
||||||
// VkPhysicalDeviceProperties2KHR extension is supported but
|
// VkPhysicalDeviceProperties2KHR extension is supported but
|
||||||
// implementations not supporting 1.1 are unlikely in future
|
// implementations not supporting 1.1 are unlikely in future
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
|
|
@ -614,7 +614,7 @@ static void server_new_output(struct wl_listener *listener, void *data) {
|
||||||
struct wlr_output *wlr_output = data;
|
struct wlr_output *wlr_output = data;
|
||||||
|
|
||||||
/* Configures the output created by the backend to use our allocator
|
/* Configures the output created by the backend to use our allocator
|
||||||
* and our renderer. Must be done once, before commiting the output */
|
* and our renderer. Must be done once, before committing the output */
|
||||||
wlr_output_init_render(wlr_output, server->allocator, server->renderer);
|
wlr_output_init_render(wlr_output, server->allocator, server->renderer);
|
||||||
|
|
||||||
/* The output may be disabled, switch it on. */
|
/* The output may be disabled, switch it on. */
|
||||||
|
|
@ -723,7 +723,7 @@ static void xdg_toplevel_destroy(struct wl_listener *listener, void *data) {
|
||||||
static void begin_interactive(struct tinywl_toplevel *toplevel,
|
static void begin_interactive(struct tinywl_toplevel *toplevel,
|
||||||
enum tinywl_cursor_mode mode, uint32_t edges) {
|
enum tinywl_cursor_mode mode, uint32_t edges) {
|
||||||
/* This function sets up an interactive move or resize operation, where the
|
/* This function sets up an interactive move or resize operation, where the
|
||||||
* compositor stops propegating pointer events to clients and instead
|
* compositor stops propagating pointer events to clients and instead
|
||||||
* consumes them itself, to move or resize windows. */
|
* consumes them itself, to move or resize windows. */
|
||||||
struct tinywl_server *server = toplevel->server;
|
struct tinywl_server *server = toplevel->server;
|
||||||
|
|
||||||
|
|
@ -906,7 +906,7 @@ int main(int argc, char *argv[]) {
|
||||||
|
|
||||||
struct tinywl_server server = {0};
|
struct tinywl_server server = {0};
|
||||||
/* The Wayland display is managed by libwayland. It handles accepting
|
/* The Wayland display is managed by libwayland. It handles accepting
|
||||||
* clients from the Unix socket, manging Wayland globals, and so on. */
|
* clients from the Unix socket, managing Wayland globals, and so on. */
|
||||||
server.wl_display = wl_display_create();
|
server.wl_display = wl_display_create();
|
||||||
/* The backend is a wlroots feature which abstracts the underlying input and
|
/* The backend is a wlroots feature which abstracts the underlying input and
|
||||||
* output hardware. The autocreate option will choose the most suitable
|
* output hardware. The autocreate option will choose the most suitable
|
||||||
|
|
|
||||||
|
|
@ -2391,7 +2391,7 @@ bool wlr_scene_output_build_state(struct wlr_scene_output *scene_output,
|
||||||
pixman_region32_init(&acc_damage);
|
pixman_region32_init(&acc_damage);
|
||||||
struct highlight_region *damage, *tmp_damage;
|
struct highlight_region *damage, *tmp_damage;
|
||||||
wl_list_for_each_safe(damage, tmp_damage, regions, link) {
|
wl_list_for_each_safe(damage, tmp_damage, regions, link) {
|
||||||
// remove overlaping damage regions
|
// remove overlapping damage regions
|
||||||
pixman_region32_subtract(&damage->region, &damage->region, &acc_damage);
|
pixman_region32_subtract(&damage->region, &damage->region, &acc_damage);
|
||||||
pixman_region32_union(&acc_damage, &acc_damage, &damage->region);
|
pixman_region32_union(&acc_damage, &acc_damage, &damage->region);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ bool array_realloc(struct wl_array *arr, size_t size) {
|
||||||
// If the size is less than 1/4th of the allocation size, we shrink it.
|
// If the size is less than 1/4th of the allocation size, we shrink it.
|
||||||
// 1/4th is picked to provide hysteresis, without which an array with size
|
// 1/4th is picked to provide hysteresis, without which an array with size
|
||||||
// arr->alloc would constantly reallocate if an element is added and then
|
// arr->alloc would constantly reallocate if an element is added and then
|
||||||
// removed continously.
|
// removed continuously.
|
||||||
size_t alloc;
|
size_t alloc;
|
||||||
if (arr->alloc > 0 && size > arr->alloc / 4) {
|
if (arr->alloc > 0 && size > arr->alloc / 4) {
|
||||||
alloc = arr->alloc;
|
alloc = arr->alloc;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue