Project: SWT
Bug 91311 Drawing Problems
Reported: 2005-04-13 13:19:30 | Status: resolved fixed

The drawProc in the Control make use of PtGetsAbsPosition. This is not a good funtion to use in a drawing procedure because it queries every region in the system until it hits the root region to figure out your position. Doing this every draw operation is extremely expensive. I have updated the function as well as fixed some little drawing issues within SWT.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT PI/photon/org/eclipse/swt/internal/photon/OS.java bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/GC.java bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Caret.java bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Control.java bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Sash.java