Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions xcf.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ static uint32_t xcf_strlen(const char *value)
}


// functions for writing to a file, taking endianess into account
// functions for writing to a file, taking endianness into account

static int xcf_write_uint8(XCF *xcf, const uint8_t value) __attribute__ ((warn_unused_result));
static int xcf_write_uint8(XCF *xcf, const uint8_t value)
Expand Down Expand Up @@ -475,7 +475,7 @@ static int xcf_write_layer_header(XCF *xcf)
CHECK_IO(xcf, xcf_write_uint32(xcf, 8), 1);
CHECK_IO(xcf, xcf_write_uint32(xcf, xcf->child.p_offset_x), 1);
CHECK_IO(xcf, xcf_write_uint32(xcf, xcf->child.p_offset_y), 1);
// thses properties were added in 2.10.0 (i presume version 4?)
// these properties were added in 2.10.0 (i presume version 4?)
// if the user set composite mode or space they should be >= 0 and affect min_version
// if they are < 0 then only write them if version >= 4
if(xcf->image.version >= 4
Expand Down Expand Up @@ -510,7 +510,7 @@ static int xcf_write_layer_header(XCF *xcf)
CHECK_IO(xcf, xcf_write_uint32(xcf, 0), 1); // type
CHECK_IO(xcf, xcf_write_uint32(xcf, 0), 1); // size

// the hierarchy struct comes rigth after the layer
// the hierarchy struct comes right after the layer
const uint64_t current_pos = ftell(xcf->fd);
CHECK_IO(xcf, xcf_write_pointer(xcf, current_pos + 2 * xcf_pointer_size(xcf)), 1);
CHECK_IO(xcf, xcf_write_pointer(xcf, 0), 1); // pointer to the layer mask, which we don't support
Expand Down Expand Up @@ -569,7 +569,7 @@ static int xcf_write_channel_header(XCF *xcf)
CHECK_IO(xcf, xcf_write_uint32(xcf, 0), 1); // type
CHECK_IO(xcf, xcf_write_uint32(xcf, 0), 1); // size

// the hierarchy struct comes rigth after the layer
// the hierarchy struct comes right after the layer
const uint64_t current_pos = ftell(xcf->fd);
CHECK_IO(xcf, xcf_write_pointer(xcf, current_pos + xcf_pointer_size(xcf)), 1);

Expand Down
2 changes: 1 addition & 1 deletion xcf_names.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#ifndef XCF_INTERNAL_INCLUDES
#error only "xcf.h" should be included diretly
#error only "xcf.h" should be included directly
#endif

#include "xcf.h"
Expand Down