Improve naming
This commit is contained in:
parent
56475a4bfa
commit
9908b54dbc
1 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue