Ignore:
Timestamp:
Jun 17, 2000, 2:31:55 PM (25 years ago)
Author:
sandervl
Message:

added missging gpi region apis

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/os2wrap.h

    r2982 r3728  
    1 /* $Id: os2wrap.h,v 1.14 2000-03-03 11:14:22 sandervl Exp $ */
     1/* $Id: os2wrap.h,v 1.15 2000-06-17 12:31:55 sandervl Exp $ */
    22#ifndef __OS2WRAP_H__
    33#define __OS2WRAP_H__
     
    75127512}
    75137513
     7514inline HRGN _GpiCreatePolygonRegion(HPS a, ULONG b, PPOLYGON c, ULONG d)
     7515{
     7516 HRGN yyrc;
     7517 USHORT sel = RestoreOS2FS();
     7518
     7519    yyrc = GpiCreatePolygonRegion(a, b, c, d);
     7520    SetFS(sel);
     7521
     7522    return yyrc;
     7523}
     7524
     7525#undef  GpiCreatePolygonRegion
     7526#define GpiCreatePolygonRegion _GpiCreatePolygonRegion
     7527
     7528inline HRGN _GpiCreateEllipticRegion(HPS a, PRECTL b)
     7529{
     7530 HRGN yyrc;
     7531 USHORT sel = RestoreOS2FS();
     7532
     7533    yyrc = GpiCreateEllipticRegion(a, b);
     7534    SetFS(sel);
     7535
     7536    return yyrc;
     7537}
     7538
     7539#undef  GpiCreateEllipticRegion
     7540#define GpiCreateEllipticRegion _GpiCreateEllipticRegion
     7541
     7542inline HRGN _GpiCreateRoundRectRegion(HPS a, PPOINTL b, LONG c, LONG d)
     7543{
     7544 HRGN yyrc;
     7545 USHORT sel = RestoreOS2FS();
     7546
     7547    yyrc = GpiCreateRoundRectRegion(a, b, c, d);
     7548    SetFS(sel);
     7549
     7550    return yyrc;
     7551}
     7552
     7553#undef  GpiCreateRoundRectRegion
     7554#define GpiCreateRoundRectRegion _GpiCreateRoundRectRegion
     7555
    75147556#undef  GpiPolygons
    75157557#define GpiPolygons _GpiPolygons
Note: See TracChangeset for help on using the changeset viewer.