uiacceltk/hitchcock/coretoolkit/src/huicanvaswspainter.cpp
branchRCL_3
changeset 51 e5af45d51884
parent 50 1801340c26a2
child 52 31fccae4f8a7
equal deleted inserted replaced
50:1801340c26a2 51:e5af45d51884
  2752         
  2752         
  2753     // Clear caches of non-used GCs
  2753     // Clear caches of non-used GCs
  2754     if ( oldGc && oldGc != iCanvasWsGc )
  2754     if ( oldGc && oldGc != iCanvasWsGc )
  2755         {
  2755         {
  2756         oldGc->ClearCache();
  2756         oldGc->ClearCache();
  2757         
  2757         }
  2758         // delete SW rendering GC when not needed
       
  2759         if ( oldGc == iCanvasWsBitGc ) 
       
  2760             {
       
  2761             delete iCanvasWsBitGc;
       
  2762             iCanvasWsBitGc = NULL;
       
  2763             }
       
  2764         }
       
  2765 
       
  2766     if ( iCanvasWsGc )
  2758     if ( iCanvasWsGc )
  2767         {
  2759         {
  2768         // Forward 'enable render buffer' setting to new GC.
  2760         // Forward 'enable render buffer' setting to new GC.
  2769         iCanvasWsGc->EnableRenderbuffer( iEnableRenderBuffer );
  2761         iCanvasWsGc->EnableRenderbuffer( iEnableRenderBuffer );
  2770         }
  2762         }