diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-04-13 09:30:31 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-04-13 09:30:31 +0200 |
| commit | e25758582e49c1887fcde4c16da761428fe6f5fa (patch) | |
| tree | 438ec4e1c265131e5c71d4cbf2e339caf7b3b9c2 /src/Fl_Pixmap.cxx | |
| parent | bfae813c4e15ec0a45a7b2cdecf32c3aac2776eb (diff) | |
Fix for issue #427 - continued.
Diffstat (limited to 'src/Fl_Pixmap.cxx')
| -rw-r--r-- | src/Fl_Pixmap.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Fl_Pixmap.cxx b/src/Fl_Pixmap.cxx index 59e69bc97..e6c6cc4c3 100644 --- a/src/Fl_Pixmap.cxx +++ b/src/Fl_Pixmap.cxx @@ -131,11 +131,10 @@ Fl_Image *Fl_Pixmap::copy(int W, int H) { return new Fl_Pixmap((char *const*)0); } // Optimize the simple copy where the width and height are the same... - if (W == w() && H == h()) { + if (W == data_w() && H == data_h()) { // Make an exact copy of the image and return it... new_image = new Fl_Pixmap(data()); new_image->copy_data(); - new_image->scale(W, H, 0, 1); return new_image; } if (W <= 0 || H <= 0) return 0; |
