-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
eclipse-platform/eclipse.platform.swt
#2358Labels
HiDPIA HiDPI-Related Issue or FeatureA HiDPI-Related Issue or FeatureSWTIssue for SWTIssue for SWTregression
Milestone
Description
Description and Reproduction
Scaling image data can lead to a stack overflow error since this change:
The regression is documented with a reproduction in:
Expected Behavior
No stack overflow should happen when scaling image data
Additional knowledge
The modified code is obviously problematic but the original code also seems to be incorrect. The ImageDataProvider
used for image data to scale returned that same image data for every zoom, which potentially led to drawing the image data at a wrong size via Image.drawScaled
and the subsequent call of GC#drawImage
. So we should properly check what is really supposed to happen here and we should add according regression tests to capture different scenarios.
Metadata
Metadata
Assignees
Labels
HiDPIA HiDPI-Related Issue or FeatureA HiDPI-Related Issue or FeatureSWTIssue for SWTIssue for SWTregression
Type
Projects
Status
✅ Done