- Timestamp:
- Sep 25, 2000, 10:54:03 PM (25 years ago)
- Location:
- trunk/src/ddraw/new
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ddraw/new/OS2SURFACE.CPP
r3345 r4326 1 /* $Id: OS2SURFACE.CPP,v 1. 1 2000-04-07 18:21:05mike Exp $ */1 /* $Id: OS2SURFACE.CPP,v 1.2 2000-09-25 20:54:01 mike Exp $ */ 2 2 3 3 /* … … 731 731 if(NULL==DPA_SurfaceAttached) 732 732 { 733 #ifdef DEBUG 734 dprintf(("DDRAW: Internal : Error creating DPA for attached surfaces\n")); 735 #endif 733 dprintf(("DDRAW: Internal : Error creating DPA for attached surfaces\n")); 736 734 lastError = DDERR_OUTOFMEMORY ; 737 735 return; … … 741 739 if(NULL==DPA_LockedRects) 742 740 { 743 #ifdef DEBUG 744 dprintf(("DDRAW: Internal : Error creating DPA for Locked Rectangles\n")); 745 #endif 741 dprintf(("DDRAW: Internal : Error creating DPA for Locked Rectangles\n")); 746 742 lastError = DDERR_OUTOFMEMORY ; 747 743 return; … … 751 747 if(NULL==DPA_SurfacePrivateData) 752 748 { 753 #ifdef DEBUG 754 dprintf(("DDRAW: Internal : Error creating DPA for priva surface Data\n")); 755 #endif 749 dprintf(("DDRAW: Internal : Error creating DPA for priva surface Data\n")); 756 750 lastError = DDERR_OUTOFMEMORY ; 757 751 return; … … 967 961 // Update passed in and local Surface description 968 962 969 #ifdef DEBUG 970 dprintf(("DDRAW: Setting up Surface\n")); 971 #endif 963 dprintf(("DDRAW: Setting up Surface\n")); 964 972 965 DDSurfaceDesc.dwFlags |= DDSD_WIDTH | DDSD_HEIGHT | 973 966 DDSD_PITCH | DDSD_LPSURFACE | … … 2192 2185 2193 2186 #ifdef DEBUG 2194 dprintf(("DDRAW: SurfBlt4 To Surf %08X, from Surf %08X \n",dest,src));2187 dprintf(("DDRAW: SurfBlt4 To Surf %08X, from Surf %08X, flags %08X", dest, src, dwFlags)); 2195 2188 if ( (NULL!=lpDestRect)&& (NULL!=lpSrcRect)) 2196 2189 dprintf(("DDRAW: SurfBlt4 to (%d,%d)(%d,%d) at %08X from (%d,%d)(%d,%d) at %08X\n", lpDestRect->left, lpDestRect->top, … … 2600 2593 { 2601 2594 // copy from the screen to a buffer 2595 dprintf(("DDRAW: Screen to buffer")); 2602 2596 2603 2597 if( (NULL==lpDestRect) && … … 2665 2659 { 2666 2660 // DIVE => DIVE or Mem => Dive can be handelt in the same way 2661 dprintf(("DDRAW: Buffer to screen")); 2667 2662 2668 2663 if( (src->pDiveBuffer == dest->pDiveBuffer) && … … 3251 3246 DWORD dwDestColor, dwSrcColor, BlitWidth, BlitHeight,x,y; 3252 3247 3253 #ifdef DEBUG 3254 dprintf(("DDRAW: SurfBltFast4 %08X at(%d/%d) onto %08X with flags %08X\n",src, dwX,dwY, dest, dwTrans)); 3255 #endif 3248 dprintf(("DDRAW: SurfBltFast4 %08X at(%d/%d) onto %08X with flags %08X\n",src, dwX,dwY, dest, dwTrans)); 3256 3249 3257 3250 if( (NULL==lpDDSrcSurface) || … … 3292 3285 if(DDBLTFAST_NOCOLORKEY == dwTrans ) 3293 3286 { 3294 dprintf(( "Solid Blit, %d bits=> %d bytes per line\n",3287 dprintf(( "Solid Blit, %d pels wide => %d bytes per line\n", 3295 3288 (SrcRect.right - SrcRect.left), 3296 3289 BlitWidth) ); 3297 3290 #ifdef USE_ASM 3298 3291 BltRec(pBltPos, pSrcPos, BlitWidth, BlitHeight, 3299 dest->dwPitchDB, 3300 src->dwPitchDB); 3292 dest->dwPitchDB, src->dwPitchDB); 3301 3293 #else 3302 3294 // Solid Blit 3303 3295 while(1) 3304 3296 { 3305 memcpy(pBltPos, pSrcPos,BlitWidth);3297 memcpy(pBltPos, pSrcPos, BlitWidth); 3306 3298 pBltPos += dest->dwPitchDB; 3307 3299 pSrcPos += src->dwPitchDB; … … 3316 3308 dprintf(("DDRAW: TransBlit\n")); 3317 3309 3318 if (dwTrans & DDBLTFAST_SRCCOLORKEY)3310 if (dwTrans & DDBLTFAST_SRCCOLORKEY) 3319 3311 { 3320 3312 dprintf(("DDRAW: Trans SRC\n")); … … 3581 3573 return(DD_OK); 3582 3574 } 3575 3583 3576 //****************************************************************************** 3584 3577 //****************************************************************************** … … 3586 3579 { 3587 3580 OS2IDirectDrawSurface *me = (OS2IDirectDrawSurface *)This; 3588 #ifdef DEBUG 3589 dprintf(("DDRAW: SurfDeleteAttachedSurface\n")); 3590 #endif 3581 dprintf(("DDRAW: SurfDeleteAttachedSurface\n")); 3591 3582 3592 3583 return(SurfDeleteAttachedSurface4(me, dwFlags, (LPDIRECTDRAWSURFACE4)lpDDSurface)); 3593 3584 } 3585 3594 3586 //****************************************************************************** 3595 3587 //****************************************************************************** -
trunk/src/ddraw/new/os2fsdd.cpp
r3345 r4326 337 337 338 338 // Bail out if we aren't in FS mode 339 if (!bIsInFS) 340 return; 339 if (!bIsInFS) { 340 SetFS(sel); 341 return; 342 } 341 343 342 344 // Get the anchor block
Note:
See TracChangeset
for help on using the changeset viewer.