all repos — mgba @ 9a76ba6b43bbf46ee11800ca885bee45436d9594

mGBA Game Boy Advance Emulator

Video: Fix warnings in ImageMagick
Jeffrey Pfau jeffrey@endrift.com
Sun, 08 Mar 2015 22:27:18 -0700
commit

9a76ba6b43bbf46ee11800ca885bee45436d9594

parent

06a0399186da39ec196382d996c8993d3ea517d3

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/platform/imagemagick/imagemagick-gif-encoder.csrc/platform/imagemagick/imagemagick-gif-encoder.c

@@ -8,7 +8,7 @@

#include "gba/video.h" static void _magickPostVideoFrame(struct GBAAVStream*, struct GBAVideoRenderer* renderer); -static void _magickPostAudioFrame(struct GBAAVStream*, int32_t left, int32_t right); +static void _magickPostAudioFrame(struct GBAAVStream*, int16_t left, int16_t right); void ImageMagickGIFEncoderInit(struct ImageMagickGIFEncoder* encoder) { encoder->wand = 0;

@@ -70,7 +70,7 @@ MagickSetImageDelay(encoder->wand, nts - ts);

++encoder->currentFrame; } -static void _magickPostAudioFrame(struct GBAAVStream* stream, int32_t left, int32_t right) { +static void _magickPostAudioFrame(struct GBAAVStream* stream, int16_t left, int16_t right) { UNUSED(stream); UNUSED(left); UNUSED(right);