Changeset 4760


Ignore:
Timestamp:
Dec 6, 2000, 4:39:56 PM (24 years ago)
Author:
phaller
Message:

aded debug macros

File:
1 edited

Legend:

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

    r4492 r4760  
    1 /* $Id: font.cpp,v 1.14 2000-10-16 22:26:53 sandervl Exp $ */
     1/* $Id: font.cpp,v 1.15 2000-12-06 15:39:56 phaller Exp $ */
    22
    33/*
     
    1818 *
    1919 */
     20
     21/*****************************************************************************
     22 * Includes                                                                  *
     23 *****************************************************************************/
    2024
    2125#include <odin.h>
     
    397401//******************************************************************************
    398402//******************************************************************************
    399 int WIN32API EnumFontsA( HDC arg1, LPCSTR arg2, FONTENUMPROCA arg3, LPARAM  arg4)
    400 {
     403ODINFUNCTION4(int, EnumFontsA,
     404              HDC, arg1,
     405              LPCSTR, arg2,
     406              FONTENUMPROCA, arg3,
     407              LPARAM,  arg4)
     408{
     409  //@@@PH shouldn't this rather be O32_EnumFonts ?
    401410  return EnumFontFamiliesA(arg1, arg2, arg3, arg4);
    402411}
    403412//******************************************************************************
    404413//******************************************************************************
    405 int WIN32API EnumFontsW( HDC arg1, LPCWSTR arg2, FONTENUMPROCW arg3, LPARAM  arg4)
    406 {
     414ODINFUNCTION4(int, EnumFontsW,
     415              HDC, arg1,
     416              LPCWSTR, arg2,
     417              FONTENUMPROCW, arg3,
     418              LPARAM,  arg4)
     419{
     420  //@@@PH shouldn't this rather be O32_EnumFonts ?
    407421  return EnumFontFamiliesW(arg1, arg2, arg3, arg4);
    408422}
    409423//******************************************************************************
    410424//******************************************************************************
    411 int WIN32API EnumFontFamiliesA(HDC          arg1,
    412                                LPCSTR       arg2,
    413                                FONTENUMPROCA arg3,
    414                                LPARAM       arg4)
     425ODINFUNCTION4(int, EnumFontFamiliesA,
     426              HDC, arg1,
     427              LPCSTR, arg2,
     428              FONTENUMPROCA, arg3,
     429              LPARAM, arg4)
    415430{
    416431  ENUMUSERDATA enumData;
     
    428443//******************************************************************************
    429444//******************************************************************************
    430 int WIN32API EnumFontFamiliesW(HDC          arg1,
    431                                LPCWSTR       arg2,
    432                                FONTENUMPROCW arg3,
    433                                LPARAM       arg4)
     445ODINFUNCTION4(int, EnumFontFamiliesW,
     446              HDC, arg1,
     447              LPCWSTR, arg2,
     448              FONTENUMPROCW, arg3,
     449              LPARAM, arg4)
    434450{
    435451  ENUMUSERDATA enumData;
     
    449465//******************************************************************************
    450466//******************************************************************************
    451 INT WIN32API EnumFontFamiliesExA( HDC arg1, LPLOGFONTA arg2, FONTENUMPROCEXA arg3, LPARAM  arg4, DWORD dwFlags)
     467ODINFUNCTION5(INT, EnumFontFamiliesExA,
     468              HDC, arg1,
     469              LPLOGFONTA, arg2,
     470              FONTENUMPROCEXA, arg3,
     471              LPARAM, arg4,
     472              DWORD, dwFlags)
    452473{
    453474  ENUMUSERDATA enumData;
     
    466487//******************************************************************************
    467488//******************************************************************************
    468 INT WIN32API EnumFontFamiliesExW( HDC arg1, LPLOGFONTW arg2, FONTENUMPROCEXW arg3, LPARAM  arg4, DWORD dwFlags)
     489ODINFUNCTION5(INT, EnumFontFamiliesExW,
     490              HDC, arg1,
     491              LPLOGFONTW, arg2,
     492              FONTENUMPROCEXW, arg3,
     493              LPARAM, arg4,
     494              DWORD, dwFlags)
    469495{
    470496  ENUMUSERDATA enumData;
     
    485511//******************************************************************************
    486512//******************************************************************************
    487 DWORD WIN32API GetFontData(HDC hdc, DWORD dwTable, DWORD dwOffset, LPVOID lpvBuffer,
    488                               DWORD dbData)
     513ODINFUNCTION5(DWORD, GetFontData,
     514              HDC, hdc,
     515              DWORD, dwTable,
     516              DWORD, dwOffset,
     517              LPVOID, lpvBuffer,
     518              DWORD, dbData)
    489519{
    490520  dprintf(("GDI32: GetFontData, not implemented (GDI_ERROR)\n"));
     
    493523//******************************************************************************
    494524//******************************************************************************
    495 int WIN32API AddFontResourceA( LPCSTR szFont)
     525ODINFUNCTION1(int, AddFontResourceA,
     526              LPCSTR, szFont)
    496527{
    497528    dprintf(("GDI32: AddFontResourceA %s", szFont));
     
    500531//******************************************************************************
    501532//******************************************************************************
    502 int WIN32API AddFontResourceW( LPCWSTR szFont)
     533ODINFUNCTION1(int, AddFontResourceW,
     534              LPCWSTR, szFont)
    503535{
    504536 char *astring = UnicodeToAsciiString((LPWSTR)szFont);
     
    513545//******************************************************************************
    514546//******************************************************************************
    515 BOOL WIN32API RemoveFontResourceA( LPCSTR arg1)
     547ODINFUNCTION1(BOOL, RemoveFontResourceA,
     548              LPCSTR, arg1)
    516549{
    517550    dprintf(("GDI32: RemoveFontResourceA %s\n", arg1));
     
    520553//******************************************************************************
    521554//******************************************************************************
    522 BOOL WIN32API RemoveFontResourceW(LPCWSTR szFont)
     555ODINFUNCTION1(BOOL, RemoveFontResourceW,
     556              LPCWSTR, szFont)
    523557{
    524558 char *astring = UnicodeToAsciiString((LPWSTR)szFont);
     
    546580 *****************************************************************************/
    547581
    548 BOOL WIN32API CreateScalableFontResourceA(DWORD   fdwHidden,
    549                                              LPCSTR lpszFontRes,
    550                                              LPCSTR lpszFontFile,
    551                                              LPCSTR lpszCurrentPath)
    552 {
    553   dprintf(("GDI32: CreateScalableFontResourceA(%08xh,%08xh,%08xh,%08xh) not implemented.\n",
    554            fdwHidden,
    555            lpszFontRes,
    556            lpszFontFile,
    557            lpszCurrentPath));
     582ODINFUNCTION4(BOOL, CreateScalableFontResourceA,
     583              DWORD, fdwHidden,
     584              LPCSTR, lpszFontRes,
     585              LPCSTR, lpszFontFile,
     586              LPCSTR, lpszCurrentPath)
     587{
     588  dprintf(("GDI32: CreateScalableFontResourceA not implemented.\n"));
    558589
    559590  return (FALSE);
     
    577608 *****************************************************************************/
    578609
    579 BOOL WIN32API CreateScalableFontResourceW(DWORD   fdwHidden,
    580                                              LPCWSTR lpszFontRes,
    581                                              LPCWSTR lpszFontFile,
    582                                              LPCWSTR lpszCurrentPath)
    583 {
    584   dprintf(("GDI32: CreateScalableFontResourceW(%08xh,%08xh,%08xh,%08xh) not implemented.\n",
    585            fdwHidden,
    586            lpszFontRes,
    587            lpszFontFile,
    588            lpszCurrentPath));
     610ODINFUNCTION4(BOOL, CreateScalableFontResourceW,
     611              DWORD, fdwHidden,
     612              LPCWSTR, lpszFontRes,
     613              LPCWSTR, lpszFontFile,
     614              LPCWSTR, lpszCurrentPath)
     615{
     616  dprintf(("GDI32: CreateScalableFontResourceW not implemented.\n"));
    589617
    590618  return (FALSE);
    591619}
     620
     621
    592622/*****************************************************************************
    593623 * Name      : DWORD GetFontLanguageInfo
     
    605635 *****************************************************************************/
    606636
    607 DWORD WIN32API GetFontLanguageInfo(HDC hdc)
     637ODINFUNCTION1(DWORD, GetFontLanguageInfo,
     638              HDC, hdc)
    608639{
    609640  dprintf(("GDI32: GetFontLanguageInfo(%08xh) not implemented.\n",
     
    612643  return (0);
    613644}
     645
     646
    614647/*************************************************************************
    615648 * TranslateCharsetInfo [GDI32.382]
     
    626659 *   TRUE on success, FALSE on failure.
    627660 *
     661 *
     662 * LPDWORD lpSrc, if flags == TCI_SRCFONTSIG: pointer to fsCsb of a FONTSIGNATURE
     663 *                if flags == TCI_SRCCHARSET: a character set value
     664 *                if flags == TCI_SRCCODEPAGE: a code page value
     665 * LPCHARSETINFO lpCs, structure to receive charset information
     666 * DWORD flags  determines interpretation of lpSrc
    628667 */
    629 BOOL WIN32API TranslateCharsetInfo(
    630   LPDWORD lpSrc, /*
    631        if flags == TCI_SRCFONTSIG: pointer to fsCsb of a FONTSIGNATURE
    632        if flags == TCI_SRCCHARSET: a character set value
    633        if flags == TCI_SRCCODEPAGE: a code page value
    634      */
    635   LPCHARSETINFO lpCs, /* structure to receive charset information */
    636   DWORD flags /* determines interpretation of lpSrc */
    637 ) {
     668ODINFUNCTION3(BOOL, TranslateCharsetInfo,
     669              LPDWORD, lpSrc,
     670              LPCHARSETINFO, lpCs,
     671              DWORD, flags)
     672{
    638673    int index = 0;
    639674    switch (flags) {
Note: See TracChangeset for help on using the changeset viewer.