Lines 24-30
Link Here
|
24 |
import org.eclipse.swt.graphics.GC; |
24 |
import org.eclipse.swt.graphics.GC; |
25 |
import org.eclipse.swt.graphics.Image; |
25 |
import org.eclipse.swt.graphics.Image; |
26 |
import org.eclipse.swt.graphics.Point; |
26 |
import org.eclipse.swt.graphics.Point; |
27 |
import org.eclipse.swt.graphics.Rectangle; |
27 |
//import org.eclipse.swt.graphics.Rectangle; |
28 |
import org.eclipse.swt.widgets.Canvas; |
28 |
import org.eclipse.swt.widgets.Canvas; |
29 |
import org.eclipse.swt.widgets.Composite; |
29 |
import org.eclipse.swt.widgets.Composite; |
30 |
import org.eclipse.swt.widgets.Control; |
30 |
import org.eclipse.swt.widgets.Control; |
Lines 261-271
Link Here
|
261 |
return; |
261 |
return; |
262 |
|
262 |
|
263 |
if (fBuffer != null) { |
263 |
if (fBuffer != null) { |
264 |
Rectangle r= fBuffer.getBounds(); |
264 |
//Rectangle r= fBuffer.getBounds(); |
265 |
if (r.width != size.x || r.height != size.y) { |
265 |
//if (r.width != size.x || r.height != size.y) { |
266 |
fBuffer.dispose(); |
266 |
fBuffer.dispose(); |
267 |
fBuffer= null; |
267 |
fBuffer= null; |
268 |
} |
268 |
//} |
269 |
} |
269 |
} |
270 |
if (fBuffer == null) |
270 |
if (fBuffer == null) |
271 |
fBuffer= new Image(fCanvas.getDisplay(), size.x, size.y); |
271 |
fBuffer= new Image(fCanvas.getDisplay(), size.x, size.y); |