diff options
| author | maxim nikonov <maxim.nikonov@hqo.co> | 2026-02-05 16:24:45 +0500 |
|---|---|---|
| committer | maxim nikonov <maxim.nikonov@hqo.co> | 2026-02-05 16:24:45 +0500 |
| commit | cdf2832347b8fdf0389cd373c2ead0ac5d071037 (patch) | |
| tree | 96f9771aed0710899aa6cbba2a84dadfe76e996e /src/Fl_Image.cxx | |
| parent | db214d1145e46d527a46d1fc2519548d2c4d23f1 (diff) | |
wip
Diffstat (limited to 'src/Fl_Image.cxx')
| -rw-r--r-- | src/Fl_Image.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_Image.cxx b/src/Fl_Image.cxx index 4727da018..aa4837d26 100644 --- a/src/Fl_Image.cxx +++ b/src/Fl_Image.cxx @@ -634,7 +634,7 @@ Fl_RGB_Image *Fl_RGB_Image::copy_scale_down_2h_() const { int H = data_h(); int D = d(); int LD = ld() ? ld() : data_w()*D; - if ((W==0) || (H==0) || (D==0)) return nullptr; + if ((W==0) || (H==0) || (D==0)) return 0; uchar *data = (uchar*)malloc(W*H*D); uchar *dst = data; for (int y = 0; y < H; y++) { @@ -680,7 +680,7 @@ Fl_RGB_Image *Fl_RGB_Image::copy_scale_down_2v_() const { int H = data_h()/2; int D = d(); int LD = ld() ? ld() : data_w()*D; - if ((W==0) || (H==0) || (D==0)) return nullptr; + if ((W==0) || (H==0) || (D==0)) return 0; uchar *data = (uchar*)malloc(W*H*D); uchar *dst = data; for (int y = 0; y < H; y++) { @@ -726,7 +726,7 @@ Fl_Image *Fl_RGB_Image::copy(int W, int H) const { return copy_optimize_(W, H); } // Negative scaling returns no image - if (W <= 0 || H <= 0) return nullptr; + if (W <= 0 || H <= 0) return 0; if (Fl_Image::RGB_scaling() == FL_RGB_SCALING_NEAREST) { return copy_nearest_neighbor_(W, H); } else { |
