Improve naming

This commit is contained in:
John Lewin 2019-01-31 07:17:51 -08:00
parent 56475a4bfa
commit 9908b54dbc

View file

@ -76,10 +76,11 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
internal void SetRenderTarget(GuiWidget renderSource)
{
this.renderSource = renderSource;
renderSource.AfterDraw += RenderSource_DrawExtra;
renderSource.AfterDraw += renderSource_AfterDraw;
}
private void RenderSource_DrawExtra(object sender, DrawEventArgs e)
// The primary draw hook. Kick off our draw operation when the renderSource fires AfterDraw
private void renderSource_AfterDraw(object sender, DrawEventArgs e)
{
if (DoOpenGlDrawing)
{