- Timestamp:
- Oct 17, 2000, 12:26:53 AM (25 years ago)
- Location:
- trunk/src/gdi32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/CALLBACK.CPP
r2802 r4492 1 /* $Id: CALLBACK.CPP,v 1. 4 2000-02-16 14:18:09sandervl Exp $ */1 /* $Id: CALLBACK.CPP,v 1.5 2000-10-16 22:26:53 sandervl Exp $ */ 2 2 3 3 /* … … 13 13 #include "misc.h" 14 14 #include "callback.h" 15 #include <wprocess.h> 15 16 16 17 #define DBG_LOCALLOG DBG_callback … … 43 44 { 44 45 LineDDAProcCallback *me = (LineDDAProcCallback *)lpData; 46 USHORT selTIB = SetWin32TIB(); // save current FS selector and set win32 sel 45 47 46 48 me->pCallback(X, Y, me->lpUserData); 49 SetFS(selTIB); // switch back to the saved FS selector 47 50 return; 48 51 } -
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 //****************************************************************************** -
trunk/src/gdi32/gdi32.cpp
r4214 r4492 1 /* $Id: gdi32.cpp,v 1.5 5 2000-09-08 04:31:48 phallerExp $ */1 /* $Id: gdi32.cpp,v 1.56 2000-10-16 22:26:53 sandervl Exp $ */ 2 2 3 3 /* … … 1053 1053 //****************************************************************************** 1054 1054 //****************************************************************************** 1055 BOOL WIN32API Polygon( HDC arg1, const POINT * arg2, int arg3)1056 { 1057 dprintf(("GDI32: Polygon "));1058 return O32_Polygon( arg1, arg2, arg3);1055 BOOL WIN32API Polygon( HDC hdc, const POINT *lpPoints, int count) 1056 { 1057 dprintf(("GDI32: Polygon %x %x %d", hdc, lpPoints, count)); 1058 return O32_Polygon(hdc, lpPoints, count); 1059 1059 } 1060 1060 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.