1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2025-04-21 18:03:02 -04:00

misc: fix a few typos in the comments

This commit is contained in:
Maxim Solovyov 2024-10-16 04:30:00 +03:00
parent ede212cc64
commit f4142c5fdd
No known key found for this signature in database
4 changed files with 4 additions and 4 deletions

View file

@ -79,7 +79,7 @@ const char *get_atom_name_cached(struct atom *a, xcb_atom_t atom);
void destroy_atoms(struct atom *a);
/// A mock atom object for unit testing. Successive calls to get_atom will return
/// secutive integers as atoms, starting from 1. Calling get_atom_name with atoms
/// consecutive integers as atoms, starting from 1. Calling get_atom_name with atoms
/// previously seen will result in the string that was used to create the atom; if
/// the atom was never returned by get_atom, it will abort.
struct atom *init_mock_atoms(void);

View file

@ -174,7 +174,7 @@ const char blit_shader_glsl[] = GLSL(330,
// For anti-aliasing, we estimate how much of the pixel is covered by the rounded
// rectangle. This differs depends on at what angle the circle sweeps through the
// pixel. e.g. if it goes from corner to corner, then the coverage goes from 0 to
// 1 when the distance goes from -sqrt(2)/2 to +sqrt(2)/2; if it goes from egde to
// 1 when the distance goes from -sqrt(2)/2 to +sqrt(2)/2; if it goes from edge to
// edge, then the coverage goes from 0 to 1 when the distance goes from -0.5 to 0.5.
// The chord length returned by `rectangle_sdf` is an approximation of this.
float rect_distance = sdf.x - corner_radius + sdf.y / 2.0f;

View file

@ -115,7 +115,7 @@ typedef struct session {
xcb_window_t debug_window;
/// The backend data the root pixmap bound to
image_handle root_image;
/// The root pixmap generation, incremented everytime
/// The root pixmap generation, incremented every time
/// the root pixmap changes
uint64_t root_image_generation;
/// A region of the size of the screen.

View file

@ -453,7 +453,7 @@ static void destroy_backend(session_t *ps) {
// handled until they are mapped.
// 2. If we haven't had chance to handle the stale flags. This
// could happen if we received a root ConfigureNotify
// _immidiately_ after we redirected.
// _immediately_ after we redirected.
win_clear_flags(w, WIN_FLAGS_PIXMAP_STALE);
win_release_images(ps->backend_data, w);
}