Skip to content

Commit

Permalink
Refactor & bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
tditlu committed Feb 18, 2021
1 parent 7d6f6f1 commit 24042db
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
bin
obj
test
.vscode
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ TARGET = amigeconv

CC = gcc
CFLAGS = -Wall -Werror -O3
LIBS = -lm

SRCDIR = src
OBJDIR = obj
Expand All @@ -15,7 +16,7 @@ all: $(BINDIR)/$(TARGET)

$(BINDIR)/$(TARGET): $(OBJECTS)
@mkdir -p $(dir $@)
@$(CC) $(CFLAGS) $(OBJECTS) -o $@ -lm
@$(CC) $(CFLAGS) $(OBJECTS) $(LIBS) -o $@

$(OBJDIR)/%.o: $(SRCDIR)/%.c $(INCLUDES)
@mkdir -p $(dir $@)
Expand Down
8 changes: 4 additions & 4 deletions src/amigeconv.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
#include "formats/sprite.h"
#include "formats/palette.h"

#define AMIGECONV_VERSION "1.0.2"
#define AMIGECONV_VERSION_DATE "2021-01-24"
#define AMIGECONV_VERSION "1.0.3"
#define AMIGECONV_VERSION_DATE "2021-02-18"

typedef enum {
PALETTE_UNKNOWN = 0,
Expand Down Expand Up @@ -53,7 +53,7 @@ static bool write_bitplane(
const unsigned int depth,
const bool interleaved
) {
buffer_t *buffer;
buffer_t *buffer = NULL;
if (interleaved) {
buffer = bitplane_convert_interleaved(image, depth);
} else {
Expand All @@ -74,7 +74,7 @@ static bool write_sprite(
const bool controlword,
const bool attached
) {
buffer_t *buffer;
buffer_t *buffer = NULL;
if (attached) {
buffer = sprite_convert_attached(image, width, controlword);
} else {
Expand Down

0 comments on commit 24042db

Please sign in to comment.