Bug 578585

Summary: Drawing into image and usage as background does not work correctly
Product: [Eclipse Project] Platform Reporter: Steffen Zimmermann <s.zimmermann>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: major    
Priority: P3 CC: christel.rueger
Version: 4.22   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:
Attachments:
Description Flags
Test Program none

Description Steffen Zimmermann CLA 2022-02-04 08:28:46 EST
Created attachment 287988 [details]
Test Program

There seems to be a SWT issue by drawing something into an image and use afterwards this image as background for a canvas. This problem happens only on Mac with Big sure or Monterey as far as we could see.
I've attached a simple standalone program which draws a green spline and a red line into an image and use then this image as background.
The red line should start on the left, top corner and ends at the right, bottom corner.
On Windows that works fine. But on Mac you can see that there is shift of the graphical content on both axes.
This problem is critical for our application, because we use this kind of handing to optimize the UI performance.