treewide: fix typos
This commit is contained in:
parent
e18b7bca0b
commit
90cc7adbd2
|
@ -11,7 +11,7 @@ enum backend_result {
|
||||||
BACKEND_SUCCESS = 0,
|
BACKEND_SUCCESS = 0,
|
||||||
|
|
||||||
/* Represents a bad file or path, implies that other backends would also fail
|
/* 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,
|
BACKEND_BAD_PATH = 1,
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ void list_deep_free(struct list *list);
|
||||||
/* Append an item to the list. Automatically resizes the list if needed */
|
/* Append an item to the list. Automatically resizes the list if needed */
|
||||||
void list_append(struct list *list, void *item);
|
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
|
* reallocations prior to inserting many items
|
||||||
*/
|
*/
|
||||||
void list_grow(struct list *list, size_t min_size);
|
void list_grow(struct list *list, size_t min_size);
|
||||||
|
|
|
@ -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_width = imv_image_width(image);
|
||||||
const int image_height = imv_image_height(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) {
|
if(src == IMV_ZOOM_MOUSE) {
|
||||||
input_xy_to_render_xy(view, &mouse_x, &mouse_y);
|
input_xy_to_render_xy(view, &mouse_x, &mouse_y);
|
||||||
x = mouse_x - view->x;
|
x = mouse_x - view->x;
|
||||||
|
|
|
@ -24,7 +24,7 @@ static void test_navigator_add_remove(void **state)
|
||||||
/* Check poll_changed */
|
/* Check poll_changed */
|
||||||
assert_false(imv_navigator_poll_changed(nav));
|
assert_false(imv_navigator_poll_changed(nav));
|
||||||
|
|
||||||
/* Add 6 paths, one non-existant should fail */
|
/* Add 6 paths, one non-existent should fail */
|
||||||
assert_false(imv_navigator_add(nav, FILENAME1, 0));
|
assert_false(imv_navigator_add(nav, FILENAME1, 0));
|
||||||
assert_false(imv_navigator_add(nav, FILENAME2, 0));
|
assert_false(imv_navigator_add(nav, FILENAME2, 0));
|
||||||
assert_false(imv_navigator_add(nav, FILENAME3, 0));
|
assert_false(imv_navigator_add(nav, FILENAME3, 0));
|
||||||
|
|
Loading…
Reference in a new issue