public bool Redraw() { gfx.BeginDrawFrame(); { RenderControl(activeControl); RenderTransitionOverlay(); if (mobilePianoVisible) { RenderControl(mobilePiano); } if (toolbar.IsExpanded) { RenderControl(quickAccessBar); RenderControl(toolbar); } else { RenderControl(toolbar); RenderControl(quickAccessBar); } } gfx.EndDrawFrame(); return(false); }
public unsafe bool Redraw() { if (AnyControlNeedsRedraw()) { // HACK : This happens when we have a dialog open, like the NSF dialog. if (controls[0].App.Project == null) { return(true); } gfx.BeginDrawFrame(); foreach (var control in controls) { gfx.BeginDrawControl(new System.Drawing.Rectangle(control.Left, control.Top, control.Width, control.Height), height); control.Render(gfx); control.ClearDirtyFlag(); } gfx.EndDrawFrame(); return(true); } return(false); }