Changeset 4492 for trunk/src/gdi32/font.cpp
- Timestamp:
- Oct 17, 2000, 12:26:53 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/font.cpp
r4352 r4492 1 /* $Id: font.cpp,v 1.1 3 2000-10-01 12:06:32sandervl Exp $ */1 /* $Id: font.cpp,v 1.14 2000-10-16 22:26:53 sandervl Exp $ */ 2 2 3 3 /* … … 31 31 #include <heapstring.h> 32 32 #include <win\options.h> 33 #include <wprocess.h> 33 34 34 35 #define DBG_LOCALLOG DBG_font … … 271 272 ENUMUSERDATA *lpEnumData = (ENUMUSERDATA *)arg4; 272 273 FONTENUMPROCA proc = (FONTENUMPROCA)lpEnumData->userProc; 273 274 return proc(lpLogFont, lpTextM, arg3, lpEnumData->userData); 274 USHORT selTIB = SetWin32TIB(); // save current FS selector and set win32 sel 275 276 int rc = proc(lpLogFont, lpTextM, arg3, lpEnumData->userData); 277 SetFS(selTIB); // switch back to the saved FS selector 278 return rc; 275 279 } 276 280 //****************************************************************************** … … 283 287 ENUMLOGFONTW LogFont; 284 288 NEWTEXTMETRICW textM; 289 USHORT selTIB = SetWin32TIB(); // save current FS selector and set win32 sel 285 290 int rc; 286 291 … … 316 321 textM.ntmAvgWidth = 0; 317 322 318 return proc(&LogFont, &textM, arg3, lpEnumData->userData); 323 rc = proc(&LogFont, &textM, arg3, lpEnumData->userData); 324 SetFS(selTIB); // switch back to the saved FS selector 325 return rc; 319 326 } 320 327 //****************************************************************************** … … 328 335 ENUMLOGFONTEXA logFont; 329 336 NEWTEXTMETRICEXA textM; 337 USHORT selTIB = SetWin32TIB(); // save current FS selector and set win32 sel 330 338 331 339 memcpy(&logFont, lpLogFont, sizeof(ENUMLOGFONTA)); … … 335 343 336 344 dprintf(("EnumFontProcExA %s", logFont.elfLogFont.lfFaceName)); 337 return proc(&logFont, &textM, arg3, lpEnumData->userData); 345 346 int rc = proc(&logFont, &textM, arg3, lpEnumData->userData); 347 SetFS(selTIB); // switch back to the saved FS selector 348 return rc; 338 349 } 339 350 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.