Changeset 7897 for trunk/src


Ignore:
Timestamp:
Feb 13, 2002, 4:23:10 PM (24 years ago)
Author:
sandervl
Message:

minor updates

Location:
trunk/src/ddraw
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ddraw/OS2CLIPPER.CPP

    r7104 r7897  
    1 /* $Id: OS2CLIPPER.CPP,v 1.16 2001-10-18 07:49:37 sandervl Exp $ */
     1/* $Id: OS2CLIPPER.CPP,v 1.17 2002-02-13 15:23:10 sandervl Exp $ */
    22
    33/*
     
    324324  WinSetVisibleRgnNotifyProc(hwnd, ClipVisRgnCallback, (DWORD)me);
    325325
    326 #if 1
    327326  me->lpRgnData = OSLibQueryVisibleRegion(hwnd, (me->lpDraw) ? me->lpDraw->GetScreenHeight() : 0);
    328327  me->fClipListChanged    = TRUE;
    329328  me->fClipListChangedInt = TRUE; //internal flag
    330 #else
    331   me->lpRgnData = (LPRGNDATA)malloc(sizeof(RGNDATAHEADER) + sizeof(RECT));
    332   me->lpRgnData->rdh.dwSize = sizeof(RGNDATAHEADER);
    333   me->lpRgnData->rdh.iType  = RDH_RECTANGLES;
    334   me->lpRgnData->rdh.nCount = 1;
    335   me->lpRgnData->rdh.nRgnSize = sizeof(RECT);
    336   //TODO: Do we need to return the window rectangle or the client
    337   //      rectangle converted to screen coordinates??????
    338   GetWindowRect(me->clipWindow, &me->lpRgnData->rdh.rcBound);
    339   RECT *rect = (RECT *)&me->lpRgnData->Buffer;
    340   *rect = me->lpRgnData->rdh.rcBound;
    341 #endif
    342 
    343   return(DD_OK);
    344 }
    345 //******************************************************************************
    346 //******************************************************************************
     329
     330  return(DD_OK);
     331}
     332//******************************************************************************
     333//******************************************************************************
  • trunk/src/ddraw/OS2SURFACE.CPP

    r7084 r7897  
    1 /* $Id: OS2SURFACE.CPP,v 1.38 2001-10-17 08:08:52 sandervl Exp $ */
     1/* $Id: OS2SURFACE.CPP,v 1.39 2002-02-13 15:23:10 sandervl Exp $ */
    22
    33/*
     
    546546static void _dump_pixelformat(LPDDPIXELFORMAT pf) {
    547547  _dump_DDPIXELFORMAT(pf->dwFlags);
    548   dprintf(("DDRAW: dwFourCC : %ld\n", pf->dwFourCC));
    549   dprintf(("DDRAW: RBG bit count : %ld\n", pf->dwRGBBitCount));
     548  dprintf(("DDRAW: dwFourCC : %4s", &pf->dwFourCC));
     549  dprintf(("DDRAW: RBG bit count : %ld", pf->dwRGBBitCount));
    550550  dprintf(("DDRAW: Masks : R %08lx  G %08lx  B %08lx  A %08lx\n",
    551551       pf->dwRBitMask, pf->dwGBitMask, pf->dwBBitMask, pf->dwRGBAlphaBitMask));
     
    907907  if( DDSurfaceDesc.dwFlags & DDSD_CAPS )
    908908  {
     909#if 0
     910//TODO: Docs say this is done, but does it really happen in windows?
     911    // check for invalid flag combinations
     912    switch(lpDDSurfaceDesc->ddsCaps.dwCaps2 & (DDSCAPS2_OPAQUE|DDSCAPS2_HINTDYNAMIC|DDSCAPS2_HINTSTATIC))
     913    {
     914    case 0:
     915    case DDSCAPS2_OPAQUE:
     916    case DDSCAPS2_HINTDYNAMIC:
     917    case DDSCAPS2_HINTSTATIC:
     918       break;
     919
     920    default:
     921       dprintf(("DDRAW: Internal : illegal ddscaps2 flag combination (static/dynamic/opaque)"));
     922       lastError = DDERR_INVALIDCAPS ;
     923       return;
     924    }
     925#endif
     926
    909927    // First check if we want to create a primary surface while the ddraw object already has one
    910928    surfaceType = DDSurfaceDesc.ddsCaps.dwCaps;
Note: See TracChangeset for help on using the changeset viewer.