Comments (3)
Further analysis suggests that (unsigned int)
would work as well, at least for this image.
from fltk.
Thanks for the report and the patch, this appears to be a bug. However, the real solution might be more involved, at least in FLTK 1.4.
Note 1: Regarding FLTK 1.3 and 1.4 (patch given above): I'd suggest to keep the signedness (sy
and line_d
are both int's
) and use (long)
for the cast rather than (ulong)
.
Note 2: I'm afraid that there are similar overflows in bilinear scaling mode below (lines 506 etc. in current 1.4 (master) code):
memcpy(left, array + lefty * line_d + leftx * d(), d());
...
If this is true then this should be fixed as well. It's just an observation, I don't have enough time right now to dig deeper.
from fltk.
Thank you for the follow-up. When I had a chance to try bilinear scaling mode, I would report any bug there as well.
from fltk.
Related Issues (20)
- Fl_Tree doesn't use system colors HOT 6
- Wayland: subwindow redraw issues from timeouts with NVidia driver HOT 26
- needing the set of C++ root or top classes of FLTK 1.4 HOT 4
- fltk.org is down HOT 4
- Bug in callbacks generated by fluid on macOS using system menu bar inside C++ Classes HOT 22
- Discrepant behaviour between Fl_Choice and Fl_Input_Choice HOT 18
- fltk 1.4.x: Fl_Browser unexpected display of empty lines ("@." vs "") HOT 3
- Adding /Xcode to .gitignore in FLTK HOT 2
- Fl_Window::get_size_range() HOT 1
- CMake's INCLUDES adds CMAKE_PREFIX_PATH before staging area leading to problems between .H and .cxx files on API changes HOT 6
- Wayland sends wrong events after an FL_DRAG of a top window. HOT 17
- Problems when using PNG images compiling on a Mac with STANDARD ARCHITECTURE (Apple Silicon + Intel) HOT 12
- Zero-sized borderless window causes high cpu usage on windows HOT 4
- Fl::screen_work_area under Wayland does not take into account the title bar or dockbar when at the bottom HOT 1
- Child Windows under Wayland are clipped on resizing or on showing when placed partially outside the main window HOT 45
- A widget's Drag and Drop does not work when dragging an url from Chrome on Linux HOT 14
- Changing FLTK's default color pallete effects how widgets and opengl child drawings are composited on Wayland HOT 7
- Wayland Memory Leak: one leak (16 bytes) per key press HOT 4
- Fl_Pack should override clear() to set resizable(0) HOT 1
- Allow replacing an element of an Fl_Group (without deleting it) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fltk.