ViewportGraphics swtGraphics = null;
if (useAdvancedGraphics ) {
swtGraphics = new SWTGraphics(buffer, display);
} else {
swtGraphics = new NonAdvancedSWTGraphics(buffer, display);
}
if (renderManager.getViewportModelInternal().isBoundsChanging() ) {
swtGraphics.getGraphics(GC.class).setAdvanced(false);
}
painter.paint(swtGraphics, tiles, minWidth, minHeight);
swtGraphics.dispose();
gc.drawImage(buffer, 0, 0);
}else{
ViewportGraphics swtGraphics = null;
if (useAdvancedGraphics ) {
swtGraphics = new SWTGraphics(gc, display);
} else {
swtGraphics = new NonAdvancedSWTGraphics(gc, display, null);
}
if (renderManager.getViewportModelInternal().isBoundsChanging() ) {
swtGraphics.getGraphics(GC.class).setAdvanced(false);
}
painter.paint(swtGraphics, tiles, minWidth, minHeight);