Changeset 4352 for trunk/src


Ignore:
Timestamp:
Oct 1, 2000, 2:06:32 PM (25 years ago)
Author:
sandervl
Message:

AddFontResourceW implemented

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gdi32/font.cpp

    r3803 r4352  
    1 /* $Id: font.cpp,v 1.12 2000-07-06 21:17:26 sandervl Exp $ */
     1/* $Id: font.cpp,v 1.13 2000-10-01 12:06:32 sandervl Exp $ */
    22
    33/*
     
    482482//******************************************************************************
    483483//******************************************************************************
    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"));
     484int WIN32API AddFontResourceA( LPCSTR szFont)
     485{
     486    dprintf(("GDI32: AddFontResourceA %s", szFont));
     487    return O32_AddFontResource(szFont);
     488}
     489//******************************************************************************
     490//******************************************************************************
     491int WIN32API AddFontResourceW( LPCWSTR szFont)
     492{
     493 char *astring = UnicodeToAsciiString((LPWSTR)szFont);
     494 BOOL  rc;
     495
     496    dprintf(("GDI32: AddFontResourceW"));
    494497    // 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;
    497501}
    498502//******************************************************************************
     
    505509//******************************************************************************
    506510//******************************************************************************
    507 BOOL WIN32API RemoveFontResourceW(LPCWSTR arg1)
    508 {
    509  char *astring = UnicodeToAsciiString((LPWSTR)arg1);
     511BOOL WIN32API RemoveFontResourceW(LPCWSTR szFont)
     512{
     513 char *astring = UnicodeToAsciiString((LPWSTR)szFont);
    510514 BOOL  rc;
    511515
    512     dprintf(("GDI32: RemoveFontResourceW\n"));
    513     rc = O32_RemoveFontResource(astring);
     516    dprintf(("GDI32: RemoveFontResourceW"));
     517    rc = RemoveFontResourceA(astring);
    514518    FreeAsciiString(astring);
    515519    return(rc);
Note: See TracChangeset for help on using the changeset viewer.