Changeset 21628 for trunk/src/gdi32/text.cpp
- Timestamp:
- Apr 21, 2011, 10:41:04 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/text.cpp
r10600 r21628 95 95 //****************************************************************************** 96 96 // todo: metafile support 97 //#undef INVERT98 //#define INVERT_SETYINVERSION99 97 //****************************************************************************** 100 98 BOOL InternalTextOutAW(HDC hdc,int X,int Y,UINT fuOptions, … … 135 133 } 136 134 137 #if defined(INVERT) && !defined(INVERT_SETYINVERSION)138 if(pHps->yInvert > 0) {139 Y = pHps->yInvert - Y;140 }141 #endif142 143 #ifdef INVERT_SETYINVERSION144 int oldyinv = GpiQueryYInversion(pHps->hps);145 Y = oldyinv - Y;146 #endif147 148 135 // When using font association, the height of DBCS and SBCS chars may be different. 149 136 // In this case, background color make stair below chars … … 181 168 return TRUE; 182 169 } 183 #ifndef INVERT184 #ifdef INVERT_SETYINVERSION185 if (oldyinv) {186 int temp = oldyinv - pmRect.yTop;187 pmRect.yTop = oldyinv - pmRect.yBottom;188 pmRect.yBottom = temp;189 }190 #else191 if (pHps->yInvert > 0) {192 int temp = pHps->yInvert - pmRect.yTop;193 pmRect.yTop = pHps->yInvert - pmRect.yBottom;194 pmRect.yBottom = temp;195 }196 #endif197 #endif198 170 199 171 if (fuOptions & ETO_CLIPPED) flOptions |= CHSOS_CLIP; … … 244 216 } 245 217 } 246 247 #ifdef INVERT_SETYINVERSION248 GpiEnableYInversion(pHps->hps, 0);249 #endif250 218 251 219 if (lpDx) … … 341 309 if(hits == GPIOS_ERROR) { 342 310 dprintf(("InternalTextOutA: OSLibGpiCharStringPosAt returned GPIOS_ERROR")); 343 #ifdef INVERT_SETYINVERSION344 GpiEnableYInversion(pHps->hps, oldyinv);345 #endif346 311 return FALSE; 347 312 } … … 356 321 OSLibGpiSetCurrentPosition(pHps,&ptl); 357 322 } 358 359 #ifdef INVERT_SETYINVERSION360 GpiEnableYInversion(pHps->hps, oldyinv);361 #endif362 323 363 324 DIBSECTION_MARK_INVALID(hdc);
Note:
See TracChangeset
for help on using the changeset viewer.