Changeset 3864 for trunk/src/gdi32


Ignore:
Timestamp:
Jul 19, 2000, 9:05:27 PM (25 years ago)
Author:
sandervl
Message:

Changed makefiles for debug & retail odincrt, gdi32-region api wrapper change

Location:
trunk/src/gdi32
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gdi32/gdi32.DEF

    r3705 r3864  
    1 ; $Id: gdi32.DEF,v 1.8 2000-06-14 13:17:49 sandervl Exp $
     1; $Id: gdi32.DEF,v 1.9 2000-07-19 19:05:06 sandervl Exp $
    22
    33;Created by BLAST for IBM's compiler
     
    359359    InternalGetTabbedTextExtentW @1005
    360360
    361     setWinDeviceRegionFromPMDeviceRegion__FUlT1P7_DCDataT1     @1006
     361    _setWinDeviceRegionFromPMDeviceRegion@16                   @1006
    362362
    363363    ObjAllocateHandle__FPUlUl10ObjectType                      @1007
  • trunk/src/gdi32/makefile

    r3705 r3864  
    1 # $Id: makefile,v 1.26 2000-06-14 13:17:50 sandervl Exp $
     1# $Id: makefile,v 1.27 2000-07-19 19:05:06 sandervl Exp $
    22
    33#
     
    2020# Flag overloads and local macros.
    2121CLEANEXTRAS = gdi32rsrc.asm
    22 
    2322
    2423# Object files. All objects should be prefixed with $(OBJDIR)!
     
    7574$(PDWIN32_LIB)/kernel32.lib
    7675$(PDWIN32_LIB)/user32.lib
    77 $(PDWIN32_LIB)/odincrt.lib
     76$(PDWIN32_LIB)/$(ODINCRT).lib
    7877OS2386.LIB
    7978$(RTLLIB_O)
  • trunk/src/gdi32/region.cpp

    r3715 r3864  
    1 /* $Id: region.cpp,v 1.9 2000-06-16 11:05:22 sandervl Exp $ */
     1/* $Id: region.cpp,v 1.10 2000-07-19 19:05:06 sandervl Exp $ */
    22
    33/*
     
    1515#define  INCL_GPI
    1616#define  INCL_WIN
    17 #include <os2wrap.h>
     17#include <os2.h> //no wrappers required here!
    1818
    1919#include <win32type.h>
     
    2424#include <string.h>
    2525#include <misc.h>
     26#include <odinwrap.h>
    2627#include <objhandle.h>
    2728#include <dcdata.h>
     
    294295}
    295296//******************************************************************************
    296 //******************************************************************************
    297 BOOL setWinDeviceRegionFromPMDeviceRegion(HRGN winHrgn, HRGN pmHrgn, pDCData pHpsPmHrgn, HWND hwndPmHrgn)
     297//exported (used by user32)
     298//******************************************************************************
     299BOOL WIN32API setWinDeviceRegionFromPMDeviceRegion(HRGN winHrgn, HRGN pmHrgn, pDCData pHpsPmHrgn, HWND hwndPmHrgn)
    298300{
    299301    BOOL    success;
     
    358360//******************************************************************************
    359361//******************************************************************************
    360 int WIN32API SelectClipRgn(HDC hdc, HRGN hrgn)
     362ODINFUNCTIONNODBG2(int, SelectClipRgn, HDC, hdc, HRGN, hrgn)
    361363{
    362364 LONG lComplexity = RGN_NULL;
     
    421423//******************************************************************************
    422424//******************************************************************************
    423 int WIN32API ExtSelectClipRgn(HDC hdc, HRGN hrgn, int mode)
     425ODINFUNCTIONNODBG3(int, ExtSelectClipRgn, HDC, hdc, HRGN, hrgn, int, mode)
    424426{
    425427   pDCData    pHps = (pDCData)OSLibGpiQueryDCData((HPS)hdc);
     
    524526//******************************************************************************
    525527//******************************************************************************
    526 int WIN32API GetClipBox(HDC hdc, PRECT lpRect)
     528ODINFUNCTIONNODBG2(int, GetClipBox, HDC, hdc, PRECT, lpRect)
    527529{
    528530 pDCData  pHps = (pDCData)OSLibGpiQueryDCData((HPS)hdc);
     
    585587//******************************************************************************
    586588//******************************************************************************
    587 int WIN32API GetClipRgn(HDC hdc, HRGN hrgn)
     589ODINFUNCTIONNODBG2(int, GetClipRgn, HDC, hdc, HRGN, hrgn)
    588590{
    589591   pDCData    pHps = (pDCData)OSLibGpiQueryDCData((HPS)hdc);
     
    628630//******************************************************************************
    629631//******************************************************************************
    630 int WIN32API ExcludeClipRect(HDC hdc, int left, int top, int right, int bottom)
     632ODINFUNCTIONNODBG5(int, ExcludeClipRect, HDC, hdc, int, left, int, top, int, right, int, bottom)
    631633{
    632634    pDCData  pHps = (pDCData)OSLibGpiQueryDCData((HPS)hdc);
     
    662664//******************************************************************************
    663665//******************************************************************************
    664 int WIN32API IntersectClipRect(HDC hdc, int left, int top, int right, int bottom)
     666ODINFUNCTIONNODBG5(int, IntersectClipRect, HDC, hdc, int, left, int, top, int, right, int, bottom)
    665667{
    666668    pDCData  pHps = (pDCData)OSLibGpiQueryDCData((HPS)hdc);
     
    692694//******************************************************************************
    693695//******************************************************************************
    694 int WIN32API OffsetClipRgn(HDC hdc, int nXOffset, int nYOffset )
     696ODINFUNCTIONNODBG3(int, OffsetClipRgn, HDC, hdc, int, nXOffset, int, nYOffset )
    695697{
    696698   BOOL      success;
     
    715717//******************************************************************************
    716718//******************************************************************************
    717 HRGN WIN32API CreatePolyPolygonRgn(const POINT * lppt, const int *pPolyCount, int nCount, int fnPolyFillMode)
     719ODINFUNCTIONNODBG4(HRGN, CreatePolyPolygonRgn, const POINT * , lppt, const int *, pPolyCount, int,  nCount, int, fnPolyFillMode)
    718720{
    719721 LONG  flMode;
     
    773775//******************************************************************************
    774776//******************************************************************************
    775 HRGN WIN32API CreateRectRgn( int left, int top, int right, int bottom)
     777ODINFUNCTIONNODBG4(HRGN, CreateRectRgn, int, left, int, top, int, right, int, bottom)
    776778{
    777779 HRGN   hrgn;
     
    795797//******************************************************************************
    796798//******************************************************************************
    797 HRGN WIN32API CreateRectRgnIndirect(const RECT *lprc)
     799ODINFUNCTIONNODBG1(HRGN, CreateRectRgnIndirect, const RECT *, lprc)
    798800{
    799801   return CreateRectRgn(lprc->left, lprc->top, lprc->right, lprc->bottom);
     
    801803//******************************************************************************
    802804//******************************************************************************
    803 HRGN WIN32API CreateRoundRectRgn(int left, int top, int right, int bottom, int nWidthEllipse, int nHeightEllipse)
     805ODINFUNCTIONNODBG6(HRGN, CreateRoundRectRgn, int, left, int, top, int, right, int, bottom, int, nWidthEllipse, int, nHeightEllipse)
    804806{
    805807 HRGN   hrgn;
     
    827829//******************************************************************************
    828830//******************************************************************************
    829 HRGN WIN32API ExtCreateRegion(const XFORM_W *pXform, DWORD count, const RGNDATA *pData)
     831ODINFUNCTIONNODBG3(HRGN, ExtCreateRegion, const XFORM_W *, pXform, DWORD, count, const RGNDATA *, pData)
    830832{
    831833   HRGN hrgn;
     
    936938//******************************************************************************
    937939//******************************************************************************
    938 HRGN WIN32API CreateEllipticRgn(int left, int top, int right, int bottom)
     940ODINFUNCTIONNODBG4(HRGN, CreateEllipticRgn, int, left, int, top, int, right, int, bottom)
    939941{
    940942 HRGN hrgn;
     
    957959//******************************************************************************
    958960//******************************************************************************
    959 HRGN WIN32API CreateEllipticRgnIndirect(const RECT *pRect)
    960 {
    961    return CreateEllipticRgn(pRect->left, pRect->top, pRect->right, pRect->bottom);
    962 }
    963 //******************************************************************************
    964 //******************************************************************************
    965 HRGN WIN32API CreatePolygonRgn(const POINT *lppt, int cPoints, int fnPolyFillMode)
     961ODINFUNCTIONNODBG1(HRGN, CreateEllipticRgnIndirect, const RECT *, pRect)
     962{
     963   return ODIN_CreateEllipticRgn(pRect->left, pRect->top, pRect->right, pRect->bottom);
     964}
     965//******************************************************************************
     966//******************************************************************************
     967ODINFUNCTIONNODBG3(HRGN, CreatePolygonRgn, const POINT *, lppt, int, cPoints, int, fnPolyFillMode)
    966968{
    967969    HRGN hrgn;
     
    10071009//******************************************************************************
    10081010//******************************************************************************
    1009 int WIN32API CombineRgn(HRGN hrgnDest, HRGN hrgnSrc1, HRGN hrgnSrc2, int combineMode)
     1011ODINFUNCTIONNODBG4(int, CombineRgn, HRGN, hrgnDest, HRGN, hrgnSrc1, HRGN, hrgnSrc2, int, combineMode)
    10101012{
    10111013    ULONG lComplexity;
     
    10541056//******************************************************************************
    10551057//******************************************************************************
    1056 BOOL WIN32API EqualRgn(HRGN hrgn1, HRGN hrgn2)
     1058ODINFUNCTIONNODBG2(BOOL, EqualRgn, HRGN, hrgn1, HRGN, hrgn2)
    10571059{
    10581060   LONG lEquality;
     
    10811083//******************************************************************************
    10821084//******************************************************************************
    1083 BOOL WIN32API SetRectRgn(HRGN hrgn, int left, int top, int right, int bottom)
     1085ODINFUNCTIONNODBG5(BOOL, SetRectRgn, HRGN, hrgn, int, left, int, top, int, right, int, bottom)
    10841086{
    10851087   BOOL    result = FALSE;
     
    11011103//******************************************************************************
    11021104//******************************************************************************
    1103 ULONG WIN32API GetRegionData(HRGN hrgn, ULONG count, PRGNDATA pData)
     1105ODINFUNCTIONNODBG3(ULONG, GetRegionData, HRGN, hrgn, ULONG, count, PRGNDATA, pData)
    11041106{
    11051107    if(!count && pData)
     
    11621164//******************************************************************************
    11631165//******************************************************************************
    1164 int WIN32API GetRgnBox(HRGN hrgn, PRECT pRect)
     1166ODINFUNCTIONNODBG2(int, GetRgnBox, HRGN, hrgn, PRECT, pRect)
    11651167{
    11661168   BOOL      success;
     
    11971199//******************************************************************************
    11981200//******************************************************************************
    1199 BOOL WIN32API InvertRgn(HDC hdc, HRGN hrgn)
     1201ODINFUNCTIONNODBG2(BOOL, InvertRgn, HDC, hdc, HRGN, hrgn)
    12001202{
    12011203    pDCData pHps = (pDCData)OSLibGpiQueryDCData((HPS)hdc);
     
    12451247//******************************************************************************
    12461248//******************************************************************************
    1247 int WIN32API OffsetRgn(HRGN hrgn, int xOffset, int yOffset)
     1249ODINFUNCTIONNODBG3(int, OffsetRgn, HRGN, hrgn, int, xOffset, int, yOffset)
    12481250{
    12491251   LONG   lComplexity;
     
    12891291//******************************************************************************
    12901292//******************************************************************************
    1291 BOOL WIN32API FrameRgn(HDC hdc, HRGN hrgn, HBRUSH hBrush, int width, int height)
     1293ODINFUNCTIONNODBG5(BOOL, FrameRgn, HDC, hdc, HRGN, hrgn, HBRUSH, hBrush, int, width, int, height)
    12921294{
    12931295    HBRUSH hbrushRestore = 0;
     
    13311333//******************************************************************************
    13321334//******************************************************************************
    1333 BOOL WIN32API FillRgn(HDC hdc, HRGN hrgn, HBRUSH hBrush)
     1335ODINFUNCTIONNODBG3(BOOL, FillRgn, HDC, hdc, HRGN, hrgn, HBRUSH, hBrush)
    13341336{
    13351337 BOOL   success;
     
    13711373//******************************************************************************
    13721374//******************************************************************************
    1373 BOOL WIN32API PaintRgn(HDC hdc, HRGN hrgn)
     1375ODINFUNCTIONNODBG2(BOOL, PaintRgn, HDC, hdc, HRGN, hrgn)
    13741376{
    13751377   pDCData  pHps = (pDCData)OSLibGpiQueryDCData((HPS)hdc);
     
    13841386//******************************************************************************
    13851387//******************************************************************************
    1386 BOOL WIN32API PtInRegion( HRGN hrgn, int x, int y)
     1388ODINFUNCTIONNODBG3(BOOL, PtInRegion, HRGN, hrgn, int, x, int, y)
    13871389{
    13881390   BOOL      success;
     
    14141416//******************************************************************************
    14151417//******************************************************************************
    1416 BOOL WIN32API RectInRegion(HRGN hrgn, const RECT *pRect)
     1418ODINFUNCTIONNODBG2(BOOL, RectInRegion, HRGN, hrgn, const RECT *, pRect)
    14171419{
    14181420   BOOL      success;
     
    14561458//Returned region in device coordinates (undocumented behaviour)
    14571459//******************************************************************************
    1458 HRGN WIN32API PathToRegion(HDC hdc)
     1460ODINFUNCTIONNODBG1(HRGN, PathToRegion, HDC, hdc)
    14591461{
    14601462    pDCData  pHps = (pDCData)OSLibGpiQueryDCData((HPS)hdc);
     
    15181520 *****************************************************************************/
    15191521
    1520 int WIN32API GetMetaRgn(HDC  hdc,
    1521                         HRGN hrgn)
     1522ODINFUNCTIONNODBG2(int, GetMetaRgn, HDC,  hdc, HRGN, hrgn)
    15221523{
    15231524  dprintf(("GDI32: GetMetaRgn(%08xh, %08xh) not implemented.\n",
     
    15431544 *****************************************************************************/
    15441545
    1545 BOOL WIN32API SetMetaRgn(HDC hdc)
     1546ODINFUNCTIONNODBG1(BOOL, SetMetaRgn, HDC, hdc)
    15461547{
    15471548  dprintf(("GDI32: SetMetaRgn(%08xh) not implemented.\n",
Note: See TracChangeset for help on using the changeset viewer.