Ignore:
Timestamp:
May 19, 2001, 9:43:54 PM (24 years ago)
Author:
sandervl
Message:

LPtoDP/DPtoLP: check input because GpiConvert doesn't like illegal values

File:
1 edited

Legend:

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

    r4602 r5760  
    1 /* $Id: oslibgpi.h,v 1.9 2000-11-16 16:34:49 sandervl Exp $ */
     1/* $Id: oslibgpi.h,v 1.10 2001-05-19 19:43:54 sandervl Exp $ */
    22
    33/*
     
    309309   #define GreIntersectClipRectangle(a,b) (INT) _Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PRECTL)(b),0L,0x00004075L)
    310310
     311#ifndef _OS2WIN_H
     312#define OPEN32API       _System
     313
     314BOOL    OPEN32API _O32_LPtoDP( HDC, PPOINT, int );
     315
     316inline BOOL O32_LPtoDP(HDC a, PPOINT b, int c)
     317{
     318 BOOL yyrc;
     319 USHORT sel = RestoreOS2FS();
     320
     321    yyrc = _O32_LPtoDP(a, b, c);
     322    SetFS(sel);
     323
     324    return yyrc;
     325}
     326BOOL    OPEN32API _O32_DPtoLP( HDC, PPOINT, int );
     327
     328inline BOOL O32_DPtoLP(HDC a, PPOINT b, int c)
     329{
     330 BOOL yyrc;
     331 USHORT sel = RestoreOS2FS();
     332
     333    yyrc = _O32_DPtoLP(a, b, c);
     334    SetFS(sel);
     335
     336    return yyrc;
     337}
     338
    311339#endif
     340#endif
Note: See TracChangeset for help on using the changeset viewer.