@@ -578,32 +578,18 @@ SmallArray<Canvas*> TabComponent::getCanvases()
578578 return allCanvases;
579579}
580580
581- void TabComponent::renderArea (NVGcontext* nvg, Rectangle<int > area, bool isQuickCanvas )
581+ void TabComponent::renderArea (NVGcontext* nvg, Rectangle<int > area)
582582{
583- if (isQuickCanvas) {
584- if (splits[0 ]) {
585- NVGScopedState scopedState (nvg);
586- nvgScissor (nvg, 0 , 0 , splits[1 ] ? (splitSize - 3 ) : getWidth (), getHeight ());
587- splits[0 ]->quickCanvas ->performRender (nvg, area, true );
588- }
589- if (splits[1 ]) {
590- NVGScopedState scopedState (nvg);
591- nvgTranslate (nvg, splitSize + 3 , 0 );
592- nvgScissor (nvg, 0 , 0 , getWidth () - (splitSize + 3 ), getHeight ());
593- splits[1 ]->quickCanvas ->performRender (nvg, area.translated (-(splitSize + 3 ), 0 ), true );
594- }
595- } else {
596- if (splits[0 ]) {
597- NVGScopedState scopedState (nvg);
598- nvgScissor (nvg, 0 , 0 , splits[1 ] ? (splitSize - 3 ) : getWidth (), getHeight ());
599- splits[0 ]->performRender (nvg, area);
600- }
601- if (splits[1 ]) {
602- NVGScopedState scopedState (nvg);
603- nvgTranslate (nvg, splitSize + 3 , 0 );
604- nvgScissor (nvg, 0 , 0 , getWidth () - (splitSize + 3 ), getHeight ());
605- splits[1 ]->performRender (nvg, area.translated (-(splitSize + 3 ), 0 ));
606- }
583+ if (splits[0 ]) {
584+ NVGScopedState scopedState (nvg);
585+ nvgScissor (nvg, 0 , 0 , splits[1 ] ? (splitSize - 3 ) : getWidth (), getHeight ());
586+ splits[0 ]->performRender (nvg, area);
587+ }
588+ if (splits[1 ]) {
589+ NVGScopedState scopedState (nvg);
590+ nvgTranslate (nvg, splitSize + 3 , 0 );
591+ nvgScissor (nvg, 0 , 0 , getWidth () - (splitSize + 3 ), getHeight ());
592+ splits[1 ]->performRender (nvg, area.translated (-(splitSize + 3 ), 0 ));
607593 }
608594
609595 if (!splitDropBounds.isEmpty ()) {
0 commit comments