aboutsummaryrefslogtreecommitdiff
path: root/core/image/common.odin
diff options
context:
space:
mode:
authorcui fliter <imcusg@gmail.com>2022-08-05 20:10:20 +0800
committercui fliter <imcusg@gmail.com>2022-08-05 20:10:20 +0800
commitdc8b7a0eb866d436cdaf4bb0c0dcd4c18962fa13 (patch)
treeb0f837441196b8c8ba6f138ebaf7d4572d7fd6bd /core/image/common.odin
parent8d1f46d837efdcebaf2e3660942a93337a230329 (diff)
fix some typos
Signed-off-by: cui fliter <imcusg@gmail.com>
Diffstat (limited to 'core/image/common.odin')
-rw-r--r--core/image/common.odin10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/image/common.odin b/core/image/common.odin
index baacd64d9..31f622d2b 100644
--- a/core/image/common.odin
+++ b/core/image/common.odin
@@ -469,7 +469,7 @@ return_single_channel :: proc(img: ^Image, channel: Channel) -> (res: ^Image, ok
}
// Does the image have 1 or 2 channels, a valid bit depth (8 or 16),
-// Is the pointer valid, are the dimenions valid?
+// Is the pointer valid, are the dimensions valid?
is_valid_grayscale_image :: proc(img: ^Image) -> (ok: bool) {
// Were we actually given a valid image?
if img == nil {
@@ -489,7 +489,7 @@ is_valid_grayscale_image :: proc(img: ^Image) -> (ok: bool) {
// This returns 0 if any of the inputs is zero.
bytes_expected := compute_buffer_size(img.width, img.height, img.channels, img.depth)
- // If the dimenions are invalid or the buffer size doesn't match the image characteristics, bail.
+ // If the dimensions are invalid or the buffer size doesn't match the image characteristics, bail.
if bytes_expected == 0 || bytes_expected != len(img.pixels.buf) || img.width * img.height > MAX_DIMENSIONS {
return false
}
@@ -498,7 +498,7 @@ is_valid_grayscale_image :: proc(img: ^Image) -> (ok: bool) {
}
// Does the image have 3 or 4 channels, a valid bit depth (8 or 16),
-// Is the pointer valid, are the dimenions valid?
+// Is the pointer valid, are the dimensions valid?
is_valid_color_image :: proc(img: ^Image) -> (ok: bool) {
// Were we actually given a valid image?
if img == nil {
@@ -518,7 +518,7 @@ is_valid_color_image :: proc(img: ^Image) -> (ok: bool) {
// This returns 0 if any of the inputs is zero.
bytes_expected := compute_buffer_size(img.width, img.height, img.channels, img.depth)
- // If the dimenions are invalid or the buffer size doesn't match the image characteristics, bail.
+ // If the dimensions are invalid or the buffer size doesn't match the image characteristics, bail.
if bytes_expected == 0 || bytes_expected != len(img.pixels.buf) || img.width * img.height > MAX_DIMENSIONS {
return false
}
@@ -527,7 +527,7 @@ is_valid_color_image :: proc(img: ^Image) -> (ok: bool) {
}
// Does the image have 1..4 channels, a valid bit depth (8 or 16),
-// Is the pointer valid, are the dimenions valid?
+// Is the pointer valid, are the dimensions valid?
is_valid_image :: proc(img: ^Image) -> (ok: bool) {
// Were we actually given a valid image?
if img == nil {