Changeset 4170 for trunk/src


Ignore:
Timestamp:
Sep 3, 2000, 11:30:35 AM (25 years ago)
Author:
sandervl
Message:

WinDrawTabbedText fs corruption fixed

File:
1 edited

Legend:

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

    r4012 r4170  
    1 /* $Id: oslibgpi.cpp,v 1.6 2000-08-14 15:51:20 cbratschi Exp $ */
     1/* $Id: oslibgpi.cpp,v 1.7 2000-09-03 09:30:35 sandervl Exp $ */
    22
    33/*
     
    5252}
    5353
     54LONG APIENTRY WinDrawTabbedText(HPS hps,LONG cchText,LONG lTabWidth,PCH lpchText,PRECTL prcl,LONG clrFore,LONG clrBack,ULONG flCmd);
     55
     56inline LONG _WinDrawTabbedText(HPS hps,LONG cchText,LONG lTabWidth,PCH lpchText,PRECTL prcl,LONG clrFore,LONG clrBack,ULONG flCmd)
     57{
     58 LONG yyrc;
     59 USHORT sel = RestoreOS2FS();
     60
     61    yyrc = WinDrawTabbedText(hps,cchText,lTabWidth,lpchText,prcl,clrFore,clrBack,flCmd);
     62    SetFS(sel);
     63
     64    return yyrc;
     65}
     66
     67#undef  WinDrawTabbedText
     68#define WinDrawTabbedText _WinDrawTabbedText
     69
    5470void inline swap(LONG &a,LONG &b)
    5571{
     
    292308}
    293309
    294 LONG APIENTRY WinDrawTabbedText(HPS hps,LONG cchText,LONG lTabWidth,PCH lpchText,PRECTL prcl,LONG clrFore,LONG clrBack,ULONG flCmd);
    295 
    296310LONG OSLibWinDrawTabbedText(PVOID pHps,LONG cchText,LONG lTabs,LPCSTR lpchText,PVOID prcl,LONG clrFore,LONG clrBack,ULONG flCmd)
    297311{
     
    325339  return yyrc;
    326340}
     341
    327342
    328343BOOL OSLibGpiEndPath(PVOID pHps)
Note: See TracChangeset for help on using the changeset viewer.