From 3a9a137f407e6e8533c6d2d682d57f1dce2771ff Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Wed, 29 Oct 2014 13:15:33 +0000 Subject: [PATCH] Modify C++ 11 to be MS-friendly #19 --- src/resize.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/resize.cc b/src/resize.cc index d0b304a8..4e896d38 100755 --- a/src/resize.cc +++ b/src/resize.cc @@ -1,5 +1,5 @@ #include -#include +#include #include #include #include @@ -70,7 +70,6 @@ struct ResizeBaton { topOffsetPost(-1), canvas(CROP), gravity(0), - background{0.0, 0.0, 0.0, 255.0}, flatten(false), sharpen(false), gamma(0.0), @@ -79,7 +78,12 @@ struct ResizeBaton { flop(false), progressive(false), withoutEnlargement(false), - withMetadata(false) {} + withMetadata(false) { + background[0] = 0.0; + background[1] = 0.0; + background[2] = 0.0; + background[3] = 255.0; + } }; class ResizeWorker : public NanAsyncWorker {