uiacceltk/hitchcock/coretoolkit/src/huicanvasgc.cpp
branchRCL_3
changeset 3 d8a3531bc6b8
parent 0 15bf7259bb7c
child 5 433cbbb6a04b
equal deleted inserted replaced
0:15bf7259bb7c 3:d8a3531bc6b8
  1191             if ((vis1 != EFullyOutside) || (vis2 != EFullyOutside))
  1191             if ((vis1 != EFullyOutside) || (vis2 != EFullyOutside))
  1192                 {
  1192                 {
  1193                 // Could copy only needed rects to avoid excessive clipping
  1193                 // Could copy only needed rects to avoid excessive clipping
  1194                 iDelayedClipRegion.Copy(iClippingRegion);
  1194                 iDelayedClipRegion.Copy(iClippingRegion);
  1195                 break;
  1195                 break;
  1196                 }                                
  1196                 }
       
  1197 
       
  1198 		    // both points lie outside - but the line may still intersect the region, 
       
  1199             // so represent the line as a rect and try an intersection test...
       
  1200             TRect lineBoundingRect(start, end);
       
  1201             lineBoundingRect.Normalize();
       
  1202             lineBoundingRect.iBr += TPoint(1, 1);
       
  1203             if (IsClipped(lineBoundingRect, iClippingRegion) != EFullyOutside)
       
  1204                 {
       
  1205                 iDelayedClipRegion.Copy(iClippingRegion);
       
  1206                 vis1 = EPartialOverlap;
       
  1207                 break;
       
  1208                 }                    
  1197             }                    
  1209             }                    
  1198         }        
  1210         }        
  1199     if (vis1 == EFullyOutside && vis2 == EFullyOutside)
  1211     if (vis1 == EFullyOutside && vis2 == EFullyOutside)
  1200         {
  1212         {
  1201         iDelayedClipVisibility = EFullyOutside;
  1213         iDelayedClipVisibility = EFullyOutside;