mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
Modify C++ 11 to be MS-friendly #19
This commit is contained in:
parent
5c51612982
commit
3a9a137f40
@ -1,5 +1,5 @@
|
|||||||
#include <tuple>
|
#include <tuple>
|
||||||
#include <math.h>
|
#include <algorithm>
|
||||||
#include <node.h>
|
#include <node.h>
|
||||||
#include <node_buffer.h>
|
#include <node_buffer.h>
|
||||||
#include <vips/vips.h>
|
#include <vips/vips.h>
|
||||||
@ -70,7 +70,6 @@ struct ResizeBaton {
|
|||||||
topOffsetPost(-1),
|
topOffsetPost(-1),
|
||||||
canvas(CROP),
|
canvas(CROP),
|
||||||
gravity(0),
|
gravity(0),
|
||||||
background{0.0, 0.0, 0.0, 255.0},
|
|
||||||
flatten(false),
|
flatten(false),
|
||||||
sharpen(false),
|
sharpen(false),
|
||||||
gamma(0.0),
|
gamma(0.0),
|
||||||
@ -79,7 +78,12 @@ struct ResizeBaton {
|
|||||||
flop(false),
|
flop(false),
|
||||||
progressive(false),
|
progressive(false),
|
||||||
withoutEnlargement(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 {
|
class ResizeWorker : public NanAsyncWorker {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user