aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTorstein Husebø <torstein@huseboe.net>2020-08-27 19:41:05 +0200
committerHarry Jeffery <harry@exec64.co.uk>2020-08-31 13:56:50 +0100
commit90cc7adbd2fbe4f9f3bc2682c92024baf85a6abb (patch)
tree9c8920b9d8c86489af1ce834772fad606dd74917 /src
parente18b7bca0b5f26827c75f216fe32bd0eaf893dcf (diff)
downloadimv-90cc7adbd2fbe4f9f3bc2682c92024baf85a6abb.tar.gz
treewide: fix typos
Diffstat (limited to 'src')
-rw-r--r--src/backend.h2
-rw-r--r--src/list.h2
-rw-r--r--src/viewport.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/backend.h b/src/backend.h
index 46a8642..00fd092 100644
--- a/src/backend.h
+++ b/src/backend.h
@@ -11,7 +11,7 @@ enum backend_result {
BACKEND_SUCCESS = 0,
/* Represents a bad file or path, implies that other backends would also fail
- * and shouln't be tried.
+ * and shouldn't be tried.
*/
BACKEND_BAD_PATH = 1,
diff --git a/src/list.h b/src/list.h
index d62f41a..9888bc9 100644
--- a/src/list.h
+++ b/src/list.h
@@ -23,7 +23,7 @@ void list_deep_free(struct list *list);
/* Append an item to the list. Automatically resizes the list if needed */
void list_append(struct list *list, void *item);
-/* Grow the list's storage to a given size, useful for avoiding unneccessary
+/* Grow the list's storage to a given size, useful for avoiding unnecessary
* reallocations prior to inserting many items
*/
void list_grow(struct list *list, size_t min_size);
diff --git a/src/viewport.c b/src/viewport.c
index d43cb72..dd289d3 100644
--- a/src/viewport.c
+++ b/src/viewport.c
@@ -142,7 +142,7 @@ void imv_viewport_zoom(struct imv_viewport *view, const struct imv_image *image,
const int image_width = imv_image_width(image);
const int image_height = imv_image_height(image);
- /* x and y cordinates are relative to the image */
+ /* x and y coordinates are relative to the image */
if(src == IMV_ZOOM_MOUSE) {
input_xy_to_render_xy(view, &mouse_x, &mouse_y);
x = mouse_x - view->x;