File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -842,7 +842,7 @@ Context2d::PutImageData(const Napi::CallbackInfo& info) {
842842 int Bpp = dstStride / canvas ()->getWidth ();
843843 int srcStride = Bpp * imageData->width ();
844844
845- int sx = 0
845+ int64_t sx = 0
846846 , sy = 0
847847 , sw = 0
848848 , sh = 0
Original file line number Diff line number Diff line change @@ -12,15 +12,15 @@ class ImageData : public Napi::ObjectWrap<ImageData> {
1212 Napi::Value GetWidth (const Napi::CallbackInfo& info);
1313 Napi::Value GetHeight (const Napi::CallbackInfo& info);
1414
15- inline int width () { return _width; }
16- inline int height () { return _height; }
15+ inline uint32_t width () { return _width; }
16+ inline uint32_t height () { return _height; }
1717 inline uint8_t *data () { return _data; }
1818
1919 Napi::Env env;
2020
2121 private:
22- int _width;
23- int _height;
22+ uint32_t _width;
23+ uint32_t _height;
2424 uint8_t *_data;
2525
2626};
You can’t perform that action at this time.
0 commit comments