- Timestamp:
- Nov 16, 2001, 4:51:00 PM (24 years ago)
- Location:
- trunk/src/gdi32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/dibsect.cpp
r7327 r7361 1 /* $Id: dibsect.cpp,v 1. 59 2001-11-13 13:18:22 sandervlExp $ */1 /* $Id: dibsect.cpp,v 1.60 2001-11-16 15:50:59 phaller Exp $ */ 2 2 3 3 /* … … 786 786 DIBSection *DIBSection::findHDC(HDC hdc) 787 787 { 788 DIBSection *dsect = section; 789 790 while(dsect) 788 // PH 2001-08-18 shortcut for performance optimization 789 if (!section) 790 return NULL; 791 792 DIBSection *dsect = section; 793 794 do 791 795 { 792 796 if(dsect->hdc == hdc) … … 796 800 dsect = dsect->next; 797 801 } 802 while(dsect); 803 798 804 return(NULL); 799 805 } -
trunk/src/gdi32/line.cpp
r6684 r7361 1 /* $Id: line.cpp,v 1.1 0 2001-09-09 12:24:13 sandervlExp $ */1 /* $Id: line.cpp,v 1.11 2001-11-16 15:51:00 phaller Exp $ */ 2 2 /* 3 3 * Line API's … … 21 21 #define ROUND_FLOAT(x) ((INT)((x < 0) ? x-0.5:x+0.5)) 22 22 23 VOIDtoWin32LineEnd(PPOINTLOS2 startPt,INT nXEnd,INT nYEnd,PPOINTLOS2 pt)23 static VOID INLINE toWin32LineEnd(PPOINTLOS2 startPt,INT nXEnd,INT nYEnd,PPOINTLOS2 pt) 24 24 { 25 25 if ((startPt->x != nXEnd) || (startPt->y != nYEnd)) … … 49 49 } 50 50 51 BOOLdrawSingleLinePoint(HDC hdc,pDCData pHps,PPOINTLOS2 pt)51 static BOOL INLINE drawSingleLinePoint(HDC hdc,pDCData pHps,PPOINTLOS2 pt) 52 52 { 53 53 LOGPEN penInfo;
Note:
See TracChangeset
for help on using the changeset viewer.