- Timestamp:
- Oct 1, 2000, 2:06:32 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/font.cpp
r3803 r4352 1 /* $Id: font.cpp,v 1.1 2 2000-07-06 21:17:26sandervl Exp $ */1 /* $Id: font.cpp,v 1.13 2000-10-01 12:06:32 sandervl Exp $ */ 2 2 3 3 /* … … 482 482 //****************************************************************************** 483 483 //****************************************************************************** 484 int WIN32API AddFontResourceA( LPCSTR arg1) 485 { 486 dprintf(("GDI32: AddFontResourceA")); 487 return O32_AddFontResource(arg1); 488 } 489 //****************************************************************************** 490 //****************************************************************************** 491 int WIN32API AddFontResourceW( LPCWSTR arg1) 492 { 493 dprintf(("GDI32: AddFontResourceW STUB")); 484 int WIN32API AddFontResourceA( LPCSTR szFont) 485 { 486 dprintf(("GDI32: AddFontResourceA %s", szFont)); 487 return O32_AddFontResource(szFont); 488 } 489 //****************************************************************************** 490 //****************************************************************************** 491 int WIN32API AddFontResourceW( LPCWSTR szFont) 492 { 493 char *astring = UnicodeToAsciiString((LPWSTR)szFont); 494 BOOL rc; 495 496 dprintf(("GDI32: AddFontResourceW")); 494 497 // NOTE: This will not work as is (needs UNICODE support) 495 // return O32_AddFontResource(arg1); 496 return 0; 498 rc = AddFontResourceA(astring); 499 FreeAsciiString(astring); 500 return rc; 497 501 } 498 502 //****************************************************************************** … … 505 509 //****************************************************************************** 506 510 //****************************************************************************** 507 BOOL WIN32API RemoveFontResourceW(LPCWSTR arg1)508 { 509 char *astring = UnicodeToAsciiString((LPWSTR) arg1);511 BOOL WIN32API RemoveFontResourceW(LPCWSTR szFont) 512 { 513 char *astring = UnicodeToAsciiString((LPWSTR)szFont); 510 514 BOOL rc; 511 515 512 dprintf(("GDI32: RemoveFontResourceW \n"));513 rc = O32_RemoveFontResource(astring);516 dprintf(("GDI32: RemoveFontResourceW")); 517 rc = RemoveFontResourceA(astring); 514 518 FreeAsciiString(astring); 515 519 return(rc);
Note:
See TracChangeset
for help on using the changeset viewer.