Changeset 1502 for trunk/src/ddraw/OS2SURFACE.CPP
- Timestamp:
- Oct 29, 1999, 12:39:29 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ddraw/OS2SURFACE.CPP
r1434 r1502 14 14 #define _OS2WIN_H 15 15 #define FAR 16 #include "misc.h"16 #include <misc.h> 17 17 #include "asmutil.h" 18 18 #include <winerror.h> … … 312 312 for (i=0;i<sizeof(flags)/sizeof(flags[0]);i++) 313 313 if (flags[i].mask & flagmask) { 314 WriteLog("%s ",flags[i].name);314 dprintf(("%s ",flags[i].name)); 315 315 }; 316 WriteLog("\n");316 dprintf(("\n")); 317 317 318 318 } … … 332 332 for (i=0;i<sizeof(flags)/sizeof(flags[0]);i++) 333 333 if (flags[i].mask & flagmask) 334 WriteLog("%s ",flags[i].name);335 WriteLog("\n");334 dprintf(("%s ",flags[i].name)); 335 dprintf(("\n")); 336 336 } 337 337 … … 372 372 for (i=0;i<sizeof(flags)/sizeof(flags[0]);i++) 373 373 if (flags[i].mask & flagmask) 374 WriteLog("%s ",flags[i].name);375 WriteLog("\n");374 dprintf(("%s ",flags[i].name)); 375 dprintf(("\n")); 376 376 } 377 377 … … 416 416 for (i=0;i<sizeof(flags)/sizeof(flags[0]);i++) 417 417 if (flags[i].mask & flagmask) 418 WriteLog("%s ",flags[i].name);419 WriteLog("\n");418 dprintf(("%s ",flags[i].name)); 419 dprintf(("\n")); 420 420 } 421 421 … … 436 436 for (i=0;i<sizeof(flags)/sizeof(flags[0]);i++) 437 437 if (flags[i].mask & flagmask) 438 WriteLog("%s ",flags[i].name);439 WriteLog("\n");438 dprintf(("%s ",flags[i].name)); 439 dprintf(("\n")); 440 440 } 441 441 … … 467 467 for (i=0;i<sizeof(flags)/sizeof(flags[0]);i++) 468 468 if (flags[i].mask & flagmask) 469 WriteLog("%s ",flags[i].name);470 WriteLog("\n");469 dprintf(("%s ",flags[i].name)); 470 dprintf(("\n")); 471 471 } 472 472 … … 495 495 for (i=0;i<sizeof(flags)/sizeof(flags[0]);i++) 496 496 if (flags[i].mask & flagmask) 497 WriteLog("%s ",flags[i].name);498 WriteLog("\n");497 dprintf(("%s ",flags[i].name)); 498 dprintf(("\n")); 499 499 } 500 500 501 501 static void _dump_pixelformat(LPDDPIXELFORMAT pf) { 502 502 _dump_DDCOLORKEY(pf->dwFlags); 503 WriteLog("dwFourCC : %ld\n", pf->dwFourCC);504 WriteLog("RBG bit cbout : %ld\n", pf->dwRGBBitCount);505 WriteLog("Masks : R %08lx G %08lx B %08lx A %08lx\n",506 pf->dwRBitMask, pf->dwGBitMask, pf->dwBBitMask, pf->dwRGBAlphaBitMask) ;503 dprintf(("dwFourCC : %ld\n", pf->dwFourCC)); 504 dprintf(("RBG bit cbout : %ld\n", pf->dwRGBBitCount)); 505 dprintf(("Masks : R %08lx G %08lx B %08lx A %08lx\n", 506 pf->dwRBitMask, pf->dwGBitMask, pf->dwBBitMask, pf->dwRGBAlphaBitMask)); 507 507 } 508 508 … … 605 605 { 606 606 #ifdef DEBUG 607 WriteLog("Internal : Error creating DPA for MipMaps\n");607 dprintf(("Internal : Error creating DPA for MipMaps\n")); 608 608 #endif 609 609 lastError = DDERR_OUTOFMEMORY ; … … 615 615 { 616 616 #ifdef DEBUG 617 WriteLog("Internal : Error creating DPA for attached surfaces\n");617 dprintf(("Internal : Error creating DPA for attached surfaces\n")); 618 618 #endif 619 619 lastError = DDERR_OUTOFMEMORY ; … … 625 625 { 626 626 #ifdef DEBUG 627 WriteLog("Internal : Error creating DPA for Locked Rectangles\n");627 dprintf(("Internal : Error creating DPA for Locked Rectangles\n")); 628 628 #endif 629 629 lastError = DDERR_OUTOFMEMORY ; … … 635 635 { 636 636 #ifdef DEBUG 637 WriteLog("Internal : Error creating DPA for priva surface Data\n");637 dprintf(("Internal : Error creating DPA for priva surface Data\n")); 638 638 #endif 639 639 lastError = DDERR_OUTOFMEMORY ; … … 649 649 { 650 650 #ifdef DEBUG 651 WriteLog("Primary surface!\n");651 dprintf(("Primary surface!\n")); 652 652 #endif 653 653 … … 655 655 { 656 656 #ifdef DEBUG 657 WriteLog("Primary surface already exits!\n");657 dprintf(("Primary surface already exits!\n")); 658 658 #endif 659 659 lastError = DDERR_PRIMARYSURFACEALREADYEXISTS; … … 667 667 { 668 668 // Dx doc says passing width,height etc. for primary surface in not permitted!! 669 WriteLog("Invalid parameters\n\n");669 dprintf(("Invalid parameters\n\n")); 670 670 lastError = DDERR_INVALIDPARAMS; 671 671 return; … … 677 677 if( lpDraw->dCaps.ulDepth == lpDraw->GetScreenBpp() ) 678 678 { 679 WriteLog("DirectScreenAccess possible\n");679 dprintf(("DirectScreenAccess possible\n")); 680 680 681 681 // Yes so direct access to framebuffer is possible … … 692 692 // and blit to the real framebuffer on Unlock to do color conversion 693 693 694 WriteLog("Need Color conversation %d => %d Bit\n",694 dprintf( ("Need Color conversation %d => %d Bit\n", 695 695 lpDraw->GetScreenBpp(), 696 696 lpDraw->dCaps.ulDepth 697 ) ;697 )); 698 698 699 699 dwPitchFB = (lpDraw->GetScreenWidth() * lpDraw->GetScreenBpp() +7) & ~7; … … 714 714 715 715 #ifdef DEBUG 716 WriteLog("Setting up Surface\n");716 dprintf(("Setting up Surface\n")); 717 717 #endif 718 718 DDSurfaceDesc.dwFlags |= DDSD_WIDTH | DDSD_HEIGHT | … … 774 774 DDSurfaceDesc.dwFlags &= ~DDSD_PIXELFORMAT; 775 775 #ifdef DEBUG 776 WriteLog("Unexpected BitDepth : %d\n",lpDraw->GetScreenBpp());776 dprintf(("Unexpected BitDepth : %d\n",lpDraw->GetScreenBpp())); 777 777 #endif 778 778 break; … … 780 780 781 781 #ifdef DEBUG 782 WriteLog("Surface set up, checking other Caps\n");782 dprintf(("Surface set up, checking other Caps\n")); 783 783 #endif 784 784 … … 786 786 { 787 787 #ifdef DEBUG 788 WriteLog("Complex Surface\n");788 dprintf(("Complex Surface\n")); 789 789 #endif 790 790 … … 792 792 { 793 793 #ifdef DEBUG 794 WriteLog("Backbuffer # = %d\n",lpDDSurfaceDesc->dwBackBufferCount);794 dprintf(("Backbuffer # = %d\n",lpDDSurfaceDesc->dwBackBufferCount)); 795 795 #endif 796 796 memset( &ComplexSurfaceDesc, … … 824 824 if (BackBuffer->GetLastError()==DD_OK) 825 825 { 826 WriteLog("created backbuffer");826 dprintf(("created backbuffer")); 827 827 // Our Primary Buffer is also the frontbuffer of a flipchain 828 828 DDSurfaceDesc.ddsCaps.dwCaps |= DDSCAPS_FRONTBUFFER | DDSCAPS_FLIP; … … 832 832 else 833 833 { 834 WriteLog("Error creating backbuffer");834 dprintf(("Error creating backbuffer")); 835 835 } 836 836 } … … 838 838 { 839 839 #ifdef DEBUG 840 WriteLog("Unsupported Complex Surface\n");840 dprintf(("Unsupported Complex Surface\n")); 841 841 _dump_DDSCAPS(lpDDSurfaceDesc->dwFlags); 842 842 #endif … … 866 866 DWORD dwBpp; 867 867 DWORD dwCaps; 868 WriteLog( " Requested Size %dx%d\n",868 dprintf(( " Requested Size %dx%d\n", 869 869 DDSurfaceDesc.dwWidth, 870 DDSurfaceDesc.dwHeight) ;870 DDSurfaceDesc.dwHeight)); 871 871 872 872 if(DDSurfaceDesc.dwFlags & DDSD_PIXELFORMAT) // Pixelformat passed in ? 873 873 { 874 WriteLog(" Pixelformat requested :");874 dprintf((" Pixelformat requested :")); 875 875 // YES use it 876 876 if(DDSurfaceDesc.ddpfPixelFormat.dwFlags & DDPF_RGB) … … 888 888 else 889 889 { 890 WriteLog(" Use Screen Format :");890 dprintf((" Use Screen Format :")); 891 891 dwBpp = lpDraw->GetScreenBpp(); // No use Screenformat 892 892 lpDDSurfaceDesc->ddpfPixelFormat.dwSize = sizeof(DDPIXELFORMAT); … … 932 932 DDSurfaceDesc.dwFlags &= ~DDSD_PIXELFORMAT; 933 933 #ifdef DEBUG 934 WriteLog("Unexpected BitDepth : %d\n",lpDraw->GetScreenBpp());934 dprintf(("Unexpected BitDepth : %d\n",lpDraw->GetScreenBpp())); 935 935 #endif 936 936 break; … … 939 939 } 940 940 941 WriteLog("%d Bits\n",dwBpp);941 dprintf(("%d Bits\n",dwBpp)); 942 942 943 943 // three possible situaltions … … 953 953 // 1. 954 954 955 WriteLog(" Usersupplied Surface\n");955 dprintf((" Usersupplied Surface\n")); 956 956 957 957 if(NULL==DDSurfaceDesc.lpSurface) … … 1005 1005 // 2. 1006 1006 1007 WriteLog(" Alloc on Load Texture?!\n");1007 dprintf((" Alloc on Load Texture?!\n")); 1008 1008 1009 1009 dwCaps &= ~DDSCAPS_ALLOCONLOAD; // remove flag … … 1022 1022 // This surface isn't allocated yet, but when the texture is loaded 1023 1023 #ifdef DEBUG 1024 WriteLog("Warning : Delayed memory allocation on request\n");1024 dprintf(("Warning : Delayed memory allocation on request\n")); 1025 1025 #endif 1026 1026 DDSurfaceDesc.lpSurface = NULL; … … 1031 1031 // 3. 1032 1032 1033 WriteLog(" Alloc now!\n");1033 dprintf((" Alloc now!\n")); 1034 1034 1035 1035 lpDDSurfaceDesc->dwFlags |= DDSD_PITCH|DDSD_LPSURFACE; … … 1044 1044 if(dwBpp<8) 1045 1045 { 1046 WriteLog("1 or 4 Bit Surface encountered may not work !");1046 dprintf(("1 or 4 Bit Surface encountered may not work !")); 1047 1047 } 1048 1048 #endif … … 1061 1061 pFrameBuffer = (char*)(((int)pFBreal + 7) & ~7); // align to QWORD 1062 1062 1063 WriteLog(" Framebuffer @ %08X QWAligned @ %08X with a Pitch of %d\n",1064 pFBreal, pFrameBuffer, dwPitchFB) ;1063 dprintf((" Framebuffer @ %08X QWAligned @ %08X with a Pitch of %d\n", 1064 pFBreal, pFrameBuffer, dwPitchFB)); 1065 1065 1066 1066 lpDDSurfaceDesc->lpSurface = pFrameBuffer; … … 1070 1070 if( (lpDraw->dCaps.ulDepth ) == dwBpp ) 1071 1071 { 1072 WriteLog(" No CC_Buffer needed\n");1072 dprintf((" No CC_Buffer needed\n")); 1073 1073 // Yes => No Colorconversion is needed so point to the same buffer 1074 1074 pDiveBuffer = pFrameBuffer; … … 1076 1076 else 1077 1077 { 1078 WriteLog(" Alloc CCBuf ");1078 dprintf((" Alloc CCBuf ")); 1079 1079 dwPitchDB = (lpDDSurfaceDesc->dwWidth * (lpDraw->dCaps.ulDepth/8) +7) & ~7; 1080 1080 if(Mainchain) 1081 1081 { 1082 WriteLog("with DIVE\n");1082 dprintf(("with DIVE\n")); 1083 1083 // This surface is part of flipchain with the primary surface use dive to assoc memory 1084 1084 pDiveBuffer = (char*)malloc( lpDDSurfaceDesc->dwHeight * … … 1092 1092 dwPitchDB, 1093 1093 (PBYTE)pDiveBuffer); 1094 WriteLog("rc = 0x%08X\n",rc);1094 dprintf(("rc = 0x%08X\n",rc)); 1095 1095 } 1096 1096 else 1097 1097 { 1098 WriteLog("with malloc (%dx%d) Pitch %d ",1098 dprintf( ("with malloc (%dx%d) Pitch %d ", 1099 1099 lpDDSurfaceDesc->dwHeight, 1100 1100 lpDDSurfaceDesc->dwWidth, 1101 dwPitchDB) ;1101 dwPitchDB)); 1102 1102 // No so we must create the Divebuffer to do the colortranslation 1103 1103 // and blit to the real framebuffer on Unlock to do color conversion … … 1105 1105 dwPitchDB); 1106 1106 } 1107 WriteLog( " @ %08X\n", pDiveBuffer);1107 dprintf(( " @ %08X\n", pDiveBuffer)); 1108 1108 } 1109 1109 … … 1119 1119 dwCaps &= ~DDSCAPS_COMPLEX; 1120 1120 #ifdef DEBUG 1121 WriteLog("Complex Surface\n");1121 dprintf(("Complex Surface\n")); 1122 1122 #endif 1123 1123 … … 1126 1126 lpDDSurfaceDesc->dwFlags &= ~DDSD_BACKBUFFERCOUNT; 1127 1127 #ifdef DEBUG 1128 WriteLog("Backbuffer # = %d\n",lpDDSurfaceDesc->dwBackBufferCount);1128 dprintf(("Backbuffer # = %d\n",lpDDSurfaceDesc->dwBackBufferCount)); 1129 1129 #endif 1130 1130 memcpy(&ComplexSurfaceDesc,lpDDSurfaceDesc,sizeof(DDSURFACEDESC2)); … … 1162 1162 lpDDSurfaceDesc->dwFlags &= ~DDSD_MIPMAPCOUNT; 1163 1163 #ifdef DEBUG 1164 WriteLog("Mipmpa # = %d\n",lpDDSurfaceDesc->dwMipMapCount);1164 dprintf(("Mipmpa # = %d\n",lpDDSurfaceDesc->dwMipMapCount)); 1165 1165 #endif 1166 1166 memcpy(&ComplexSurfaceDesc,lpDDSurfaceDesc,sizeof(DDSURFACEDESC2)); … … 1170 1170 { 1171 1171 #ifdef DEBUG 1172 WriteLog("Creating MipMap %d\n",i);1172 dprintf(("Creating MipMap %d\n",i)); 1173 1173 #endif 1174 1174 // Mpmaps shirnk by 2 … … 1187 1187 lastError = MipMapSurface->GetLastError(); 1188 1188 #ifdef DEBUG 1189 WriteLog("Attached surface creation returned error %d\n",lastError);1189 dprintf(("Attached surface creation returned error %d\n",lastError)); 1190 1190 #endif 1191 1191 return; … … 1196 1196 #ifdef DEBUG 1197 1197 if(lpDDSurfaceDesc->dwFlags) 1198 WriteLog("Unsupported Complex Surface\n");1198 dprintf(("Unsupported Complex Surface\n")); 1199 1199 #endif 1200 1200 } // Endif DDSCAPS_COMPLEX … … 1207 1207 else 1208 1208 { 1209 WriteLog("CAPS not valid\n");1209 dprintf(("CAPS not valid\n")); 1210 1210 lastError = DDERR_INVALIDPARAMS; 1211 1211 } 1212 1212 #ifdef DEBUG 1213 WriteLog("Buf %X Screen Caps (%d,%d), bitcount %d\n\n", this, lpDraw->GetScreenHeight(), lpDraw->GetScreenWidth(),1214 lpDraw->dCaps.ulDepth) ;1213 dprintf(("Buf %X Screen Caps (%d,%d), bitcount %d\n\n", this, lpDraw->GetScreenHeight(), lpDraw->GetScreenWidth(), 1214 lpDraw->dCaps.ulDepth)); 1215 1215 if(DD_OK!=lastError) 1216 1216 { 1217 WriteLog("Some Error Check Flags\n");1217 dprintf(("Some Error Check Flags\n")); 1218 1218 _dump_DDSCAPS(lpDDSurfaceDesc->dwFlags); 1219 1219 } … … 1232 1232 WORD *pPal16; 1233 1233 #ifdef DEBUG 1234 WriteLog("ColorFill with %08X\n", dwFillColor);1234 dprintf(("ColorFill with %08X\n", dwFillColor)); 1235 1235 #endif 1236 1236 … … 1238 1238 { 1239 1239 #ifdef DEBUG 1240 WriteLog("Fill only Rect(%d,%d)(%d,%d)\n", lpDestRect->left, lpDestRect->top,1241 lpDestRect->right, lpDestRect->bottom) ;1240 dprintf(("Fill only Rect(%d,%d)(%d,%d)\n", lpDestRect->left, lpDestRect->top, 1241 lpDestRect->right, lpDestRect->bottom)); 1242 1242 #endif 1243 1243 FillWidth = lpDestRect->right - lpDestRect->left; … … 1249 1249 else 1250 1250 { 1251 WriteLog("Fill all at addr ");1251 dprintf(("Fill all at addr ")); 1252 1252 FillWidth = width; 1253 1253 FillHeight = height -1; 1254 1254 pLine = pDiveBuffer; 1255 1255 } 1256 WriteLog("0x%08X (%d/%d) at\n", pLine,FillWidth,FillHeight);1256 dprintf(("0x%08X (%d/%d) at\n", pLine,FillWidth,FillHeight)); 1257 1257 1258 1258 if(pDiveBuffer!=pFrameBuffer) … … 1268 1268 ((DefaultPalette[i*3+1]>>2) <<5) + 1269 1269 ((DefaultPalette[i*3]>>3) << 11); 1270 WriteLog( " # %d : RGB=%02X/%02X/%02X => %04X\n",1270 dprintf(( " # %d : RGB=%02X/%02X/%02X => %04X\n", 1271 1271 i, 1272 1272 DefaultPalette[i*3], 1273 1273 DefaultPalette[i*3+1], 1274 1274 DefaultPalette[i*3+2], 1275 wDefaultPalete16[i]) ;1275 wDefaultPalete16[i])); 1276 1276 // aPal24[i] = (lpColorTable[i].peBlue <<8) + 1277 1277 // (lpColorTable[i].peGreen<<16) + … … 1292 1292 { 1293 1293 case 1: 1294 WriteLog("8 Bit\n");1294 dprintf(("8 Bit\n")); 1295 1295 dwColor = (dwFillColor<<24) + (dwFillColor<<16) + 1296 1296 (dwFillColor<<8) + (dwFillColor); … … 1305 1305 break; 1306 1306 case 2: 1307 WriteLog("16 Bit\n");1307 dprintf(("16 Bit\n")); 1308 1308 if(pDiveBuffer!=pFrameBuffer) 1309 1309 { … … 1312 1312 } 1313 1313 dwColor = (dwFillColor<<16) + (dwFillColor); 1314 WriteLog("Fill with 0x%08X\n",dwColor);1314 dprintf(("Fill with 0x%08X\n",dwColor)); 1315 1315 for(i=0,pColor = (DWORD*)pLine;i<(FillWidth/2);i++) 1316 1316 pColor[i] = dwColor; … … 1322 1322 break; 1323 1323 case 3: 1324 WriteLog("24 Bit\n");1324 dprintf(("24 Bit\n")); 1325 1325 1326 1326 dwColor = (dwFillColor<<8); … … 1332 1332 break; 1333 1333 case 4: 1334 WriteLog("32 Bit\n");1334 dprintf(("32 Bit\n")); 1335 1335 dwColor = dwFillColor; 1336 1336 for(i=0,pColor = (DWORD*)pLine;i<FillWidth;i++) … … 1339 1339 default: 1340 1340 #ifdef DEBUG 1341 WriteLog("Unexpected Bitdepth\n");1341 dprintf(("Unexpected Bitdepth\n")); 1342 1342 #endif 1343 1343 return DDERR_GENERIC; … … 1367 1367 // Yeah! Color conversion needed ;) 1368 1368 #ifdef DEBUG 1369 WriteLog("Color converion ! Urks, may not work \n");1369 dprintf(("Color converion ! Urks, may not work \n")); 1370 1370 #endif 1371 1371 … … 1396 1396 { 1397 1397 #ifdef DEBUG 1398 WriteLog("Error creating Palette default to 0");1398 dprintf(("Error creating Palette default to 0")); 1399 1399 #endif 1400 1400 ulColor = 0; … … 1496 1496 default: 1497 1497 #ifdef DEBUG 1498 WriteLog("Unexpected Bitdepth\n");1498 dprintf(("Unexpected Bitdepth\n")); 1499 1499 #endif 1500 1500 return DDERR_GENERIC; … … 1523 1523 ((DefaultPalette[i*3+1]>>2) <<5) + 1524 1524 ((DefaultPalette[i*3]>>3) << 11); 1525 WriteLog( " # %d : RGB=%02X/%02X/%02X => %04X\n",1525 dprintf(( " # %d : RGB=%02X/%02X/%02X => %04X\n", 1526 1526 i, 1527 1527 DefaultPalette[i*3], 1528 1528 DefaultPalette[i*3+1], 1529 1529 DefaultPalette[i*3+2], 1530 wDefaultPalete16[i]) ;1530 wDefaultPalete16[i])); 1531 1531 // aPal24[i] = (lpColorTable[i].peBlue <<8) + 1532 1532 // (lpColorTable[i].peGreen<<16) + … … 1569 1569 } 1570 1570 1571 WriteLog("H: %d W: %d\n SRC @ %08X\n DST @ %08X\n",1572 CCheight, CCwidth, pSrc,pDst) ;1571 dprintf( ("H: %d W: %d\n SRC @ %08X\n DST @ %08X\n", 1572 CCheight, CCwidth, pSrc,pDst)); 1573 1573 1574 1574 pSLine = pSrc; … … 1578 1578 { 1579 1579 case 8: 1580 WriteLog(" 8Bit target CC not implemented\n");1580 dprintf((" 8Bit target CC not implemented\n")); 1581 1581 break; 1582 1582 case 15: 1583 WriteLog(" 15 Bit not implemented using 16bit might look ugly\n");1583 dprintf((" 15 Bit not implemented using 16bit might look ugly\n")); 1584 1584 case 16: 1585 1585 if(8==lpDraw->GetScreenBpp()) 1586 1586 { 1587 WriteLog("8->16Bit CC\n");1587 dprintf(("8->16Bit CC\n")); 1588 1588 for(y=0;CCheight;CCheight--,y++) 1589 1589 { … … 1599 1599 else 1600 1600 { 1601 WriteLog("%d ->16Bit Not implemented",lpDraw->GetScreenBpp());1601 dprintf(("%d ->16Bit Not implemented",lpDraw->GetScreenBpp())); 1602 1602 } 1603 1603 break; … … 1605 1605 if(8==lpDraw->GetScreenBpp()) 1606 1606 { 1607 WriteLog("8->24Bit CC");1607 dprintf(("8->24Bit CC")); 1608 1608 } 1609 1609 else 1610 1610 { 1611 WriteLog("%d ->24Bit Not implemented",lpDraw->GetScreenBpp());1611 dprintf(("%d ->24Bit Not implemented",lpDraw->GetScreenBpp())); 1612 1612 } 1613 1613 break; … … 1615 1615 if(8==lpDraw->GetScreenBpp()) 1616 1616 { 1617 WriteLog("8->32Bit CC");1617 dprintf(("8->32Bit CC")); 1618 1618 } 1619 1619 else 1620 1620 { 1621 WriteLog("%d ->32Bit Not implemented",lpDraw->GetScreenBpp());1621 dprintf(("%d ->32Bit Not implemented",lpDraw->GetScreenBpp())); 1622 1622 } 1623 1623 break; 1624 1624 default: 1625 1625 #ifdef DEBUG 1626 WriteLog("Unexpected Screen Bitdepth %d\n",1627 lpDraw->dCaps.ulDepth) ;1626 dprintf( ("Unexpected Screen Bitdepth %d\n", 1627 lpDraw->dCaps.ulDepth)); 1628 1628 #endif 1629 1629 break; … … 1660 1660 sBlt.ulNumDstRects = DIVE_FULLY_VISIBLE; 1661 1661 1662 WriteLog("Colorconversion:\n FCC SRC %08X\n FCC DST %08X\n",1662 dprintf( ("Colorconversion:\n FCC SRC %08X\n FCC DST %08X\n", 1663 1663 sBlt.fccSrcColorFormat, 1664 sBlt.fccDstColorFormat ) ;1664 sBlt.fccDstColorFormat )); 1665 1665 1666 1666 rc = DiveAllocImageBuffer( hDiveCC, … … 1671 1671 dwPitchFB, 1672 1672 (PBYTE)pFrameBuffer); 1673 WriteLog("AllocDiveSrc Buffer rc= 0x%08X\n",rc);1673 dprintf("AllocDiveSrc Buffer rc= 0x%08X\n",rc); 1674 1674 1675 1675 rc = DiveAllocImageBuffer( hDiveCC, … … 1680 1680 dwPitchDB, 1681 1681 (PBYTE)pDiveBuffer); 1682 WriteLog("AllocDiveDst Buffer rc= 0x%08X\n",rc);1682 dprintf(("AllocDiveDst Buffer rc= 0x%08X\n",rc)); 1683 1683 1684 1684 rc = DiveSetupBlitter( hDiveCC, 1685 1685 &sBlt); 1686 WriteLog("SetupBlitter rc= %X\n",rc);1686 dprintf(("SetupBlitter rc= %X\n",rc)); 1687 1687 1688 1688 rc = DiveBlitImage( hDiveCC, … … 1690 1690 ulDN2); 1691 1691 1692 WriteLog("Blit rc= %X\n",rc);1692 dprintf(("Blit rc= %X\n",rc)); 1693 1693 1694 1694 rc = DiveFreeImageBuffer( hDiveCC, 1695 1695 ulDN1); 1696 WriteLog("Free Src rc= %X\n",rc);1696 dprintf(("Free Src rc= %X\n",rc)); 1697 1697 1698 1698 rc = DiveFreeImageBuffer( hDiveCC, 1699 1699 ulDN2); 1700 1700 1701 WriteLog("Free dst rc= %X\n",rc);1701 dprintf(("Free dst rc= %X\n",rc)); 1702 1702 */ 1703 1703 } … … 1811 1811 { 1812 1812 1813 WriteLog("Remove Frontbuffer\n");1813 dprintf(("Remove Frontbuffer\n")); 1814 1814 1815 1815 // The real Frontbuffer was removed check if I'm now the one 1816 1816 if(NULL!=BackBuffer) 1817 1817 { 1818 WriteLog("We have the a backbuffer so we're the Frontbuffer\n");1818 dprintf(("We have the a backbuffer so we're the Frontbuffer\n")); 1819 1819 NextFlip = BackBuffer; 1820 1820 DDSurfaceDesc.ddsCaps.dwCaps &= ~DDSCAPS_BACKBUFFER; … … 1825 1825 { 1826 1826 // Flipchain is destroyed 1827 WriteLog("No longer part of a flipchain\n");1827 dprintf(("No longer part of a flipchain\n")); 1828 1828 DDSurfaceDesc.ddsCaps.dwCaps &= ~(DDSCAPS_BACKBUFFER | DDSCAPS_FLIP); 1829 1829 } … … 1831 1831 else 1832 1832 { 1833 WriteLog("Set new Frontbuffer to 0x%08X\n",NewFBuffer);1833 dprintf(("Set new Frontbuffer to 0x%08X\n",NewFBuffer)); 1834 1834 if(NULL==NewFBuffer->GetFrontBuffer()) 1835 1835 { 1836 WriteLog("We're the 1st backbuffer\n");1836 dprintf(("We're the 1st backbuffer\n")); 1837 1837 DDSurfaceDesc.ddsCaps.dwCaps |= DDSCAPS_BACKBUFFER | DDSCAPS_FLIP; 1838 1838 FrontBuffer->NextFlip = this; … … 1840 1840 else 1841 1841 { 1842 WriteLog("We are oe of many buffers\n");1842 dprintf(("We are oe of many buffers\n")); 1843 1843 DDSurfaceDesc.ddsCaps.dwCaps &= ~DDSCAPS_BACKBUFFER ; 1844 1844 DDSurfaceDesc.ddsCaps.dwCaps |= DDSCAPS_FLIP; … … 1858 1858 1859 1859 #ifdef DEBUG 1860 WriteLog("OS2IDirectDrawSurface::SurfQueryInterface\n");1860 dprintf(("OS2IDirectDrawSurface::SurfQueryInterface\n")); 1861 1861 #endif 1862 1862 … … 1881 1881 1882 1882 #ifdef DEBUG 1883 WriteLog("OS2IDirectDrawSurface::SurfAddRef %d\n", me->Referenced+1);1883 dprintf(("OS2IDirectDrawSurface::SurfAddRef %d\n", me->Referenced+1)); 1884 1884 #endif 1885 1885 … … 1893 1893 1894 1894 #ifdef DEBUG 1895 WriteLog("OS2IDirectDrawSurface::SurfRelease %d\n", me->Referenced-1);1896 WriteLog("OS2IDirectDrawSurface::Surface %X\n", me);1895 dprintf(("OS2IDirectDrawSurface::SurfRelease %d\n", me->Referenced-1)); 1896 dprintf(("OS2IDirectDrawSurface::Surface %X\n", me)); 1897 1897 #endif 1898 1898 if(me->Referenced) … … 1919 1919 1920 1920 #ifdef DEBUG 1921 WriteLog("SurfAddAttachedSurface\n");1921 dprintf(("SurfAddAttachedSurface\n")); 1922 1922 #endif 1923 1923 return SurfAddAttachedSurface4(This, (LPDIRECTDRAWSURFACE4)lpDDSurface); … … 1933 1933 1934 1934 #ifdef DEBUG 1935 WriteLog("SurfAddAttachedSurface4\n");1935 dprintf(("SurfAddAttachedSurface4\n")); 1936 1936 #endif 1937 1937 … … 1944 1944 { 1945 1945 #ifdef DEBUG 1946 WriteLog("Internal : Can't attach an implicit created surface to an other surface\n");1946 dprintf(("Internal : Can't attach an implicit created surface to an other surface\n")); 1947 1947 #endif 1948 1948 return(DDERR_CANNOTATTACHSURFACE); … … 1952 1952 { 1953 1953 #ifdef DEBUG 1954 WriteLog("Can't attach an surface to itself\n");1954 dprintf(("Can't attach an surface to itself\n")); 1955 1955 #endif 1956 1956 return(DDERR_CANNOTATTACHSURFACE); … … 1977 1977 { 1978 1978 #ifdef DEBUG 1979 WriteLog("Internal : Error attaching to MipMap\n");1979 dprintf(("Internal : Error attaching to MipMap\n")); 1980 1980 #endif 1981 1981 return(DDERR_CANNOTATTACHSURFACE); … … 1985 1985 { 1986 1986 #ifdef DEBUG 1987 WriteLog("Target Surface isn't a MipMap\n");1987 dprintf(("Target Surface isn't a MipMap\n")); 1988 1988 #endif 1989 1989 return(DDERR_CANNOTATTACHSURFACE); … … 2003 2003 { 2004 2004 #ifdef DEBUG 2005 WriteLog("Internal : Error attaching to general Set\n");2005 dprintf(("Internal : Error attaching to general Set\n")); 2006 2006 #endif 2007 2007 return(DDERR_CANNOTATTACHSURFACE); … … 2018 2018 { 2019 2019 #ifdef DEBUG 2020 WriteLog("Surfaces don't have same dimensions\n");2020 dprintf(("Surfaces don't have same dimensions\n")); 2021 2021 #endif 2022 2022 return(DDERR_CANNOTATTACHSURFACE); … … 2029 2029 { 2030 2030 #ifdef DEBUG 2031 WriteLog("Surfaces already has a front/backbuffer\n");2031 dprintf(("Surfaces already has a front/backbuffer\n")); 2032 2032 #endif 2033 2033 return(DDERR_SURFACEALREADYATTACHED); … … 2064 2064 { 2065 2065 #ifdef DEBUG 2066 WriteLog("Can't attach backbuffer to anything but a frontbuffer\n");2066 dprintf(("Can't attach backbuffer to anything but a frontbuffer\n")); 2067 2067 #endif 2068 2068 return(DDERR_CANNOTATTACHSURFACE); … … 2088 2088 { 2089 2089 #ifdef DEBUG 2090 WriteLog("Internal : Error attaching to MipMap\n");2090 dprintf(("Internal : Error attaching to MipMap\n")); 2091 2091 #endif 2092 2092 return(DDERR_CANNOTATTACHSURFACE); … … 2096 2096 { 2097 2097 #ifdef DEBUG 2098 WriteLog("Tagget Surface isn't a MipMap\n");2098 dprintf(("Tagget Surface isn't a MipMap\n")); 2099 2099 #endif 2100 2100 return(DDERR_CANNOTATTACHSURFACE); … … 2112 2112 { 2113 2113 #ifdef DEBUG 2114 WriteLog("Internal : Error attaching to general Set\n");2114 dprintf(("Internal : Error attaching to general Set\n")); 2115 2115 #endif 2116 2116 return(DDERR_CANNOTATTACHSURFACE); … … 2120 2120 } 2121 2121 } 2122 WriteLog("Surface attached\n");2122 dprintf(("Surface attached\n")); 2123 2123 return(DD_OK); 2124 2124 } … … 2128 2128 { 2129 2129 #ifdef DEBUG 2130 WriteLog("SurfAddOverlayDirtyRect Not implemented by M$ in V 6.0! \n");2130 dprintf(("SurfAddOverlayDirtyRect Not implemented by M$ in V 6.0! \n")); 2131 2131 #endif 2132 2132 … … 2181 2181 #ifdef DEBUG 2182 2182 if ( (NULL!=lpDestRect)&& (NULL!=lpSrcRect)) 2183 WriteLog("SurfBlt4 to (%d,%d)(%d,%d) at %08X from (%d,%d)(%d,%d) at %08X\n", lpDestRect->left, lpDestRect->top,2183 dprintf(("SurfBlt4 to (%d,%d)(%d,%d) at %08X from (%d,%d)(%d,%d) at %08X\n", lpDestRect->left, lpDestRect->top, 2184 2184 lpDestRect->right, lpDestRect->bottom, dest, lpSrcRect->left, lpSrcRect->top, 2185 lpSrcRect->right, lpSrcRect->bottom, src) ;2185 lpSrcRect->right, lpSrcRect->bottom, src)); 2186 2186 2187 2187 _dump_DDBLT(dwFlags); … … 2234 2234 delete pIRectDest; 2235 2235 #ifdef DEBUG 2236 WriteLog("Blt: Dest Surface partly locked\n");2236 dprintf(("Blt: Dest Surface partly locked\n")); 2237 2237 #endif 2238 2238 return(DDERR_SURFACEBUSY); … … 2249 2249 if(dwFlags & DDBLT_COLORFILL) 2250 2250 { 2251 WriteLog("ColorFill\n");2251 dprintf(("ColorFill\n")); 2252 2252 if((NULL==lpDDBltFx)||(lpDDBltFx->dwSize!=sizeof(DDBLTFX)) ) 2253 2253 return DDERR_INVALIDPARAMS; … … 2263 2263 if (dwFlags & DDBLT_DEPTHFILL) 2264 2264 { 2265 WriteLog("DepthFill\n");2265 dprintf(("DepthFill\n")); 2266 2266 #ifdef USE_OPENGL 2267 2267 GLboolean ztest; 2268 2268 // Todo support more than one Z-Buffer 2269 2269 // Clears the screen 2270 WriteLog("Filling depth buffer with %ld\n", lpbltfx->b.dwFillDepth);2270 dprintf(("Filling depth buffer with %ld\n", lpbltfx->b.dwFillDepth)); 2271 2271 glClearDepth(lpDDBltFx->b.dwFillDepth / 65535.0); // We suppose a 16 bit Z Buffer 2272 2272 glGetBooleanv(GL_DEPTH_TEST, &ztest); … … 2321 2321 { 2322 2322 #ifdef DEBUG 2323 WriteLog("Unsupported sourceless FX operation. Flags = 0x%04X\n",dwFlags);2323 dprintf(("Unsupported sourceless FX operation. Flags = 0x%04X\n",dwFlags)); 2324 2324 #endif 2325 2325 return DD_OK; … … 2372 2372 delete pIRectSrc; 2373 2373 #ifdef DEBUG 2374 WriteLog("Blt: Src Surface partly locked\n");2374 dprintf(("Blt: Src Surface partly locked\n")); 2375 2375 #endif 2376 2376 return(DDERR_SURFACEBUSY); … … 2382 2382 { 2383 2383 #ifdef DEBUG 2384 WriteLog("Blitting with scaleing\n Not supported.\n");2384 dprintf(("Blitting with scaleing\n Not supported.\n")); 2385 2385 #endif 2386 2386 return DDERR_NOSTRETCHHW; … … 2392 2392 { 2393 2393 // Stretching not supported 2394 WriteLog("No stretched blits\n");2394 dprintf(("No stretched blits\n")); 2395 2395 2396 2396 return DDERR_NOSTRETCHHW; … … 2399 2399 if (dest->DDSurfaceDesc.ddsCaps.dwCaps & DDSCAPS_PRIMARYSURFACE) 2400 2400 { 2401 WriteLog("Dest is Primary Surface\n");2401 dprintf(("Dest is Primary Surface\n")); 2402 2402 if(src->DDSurfaceDesc.ddsCaps.dwCaps & DDSCAPS_PRIMARYSURFACE) 2403 2403 { 2404 2404 // special Type 1 : Bliting between parts of the screen 2405 2405 2406 WriteLog("Src is Primary Surface\n");2406 dprintf(("Src is Primary Surface\n")); 2407 2407 2408 2408 if( *pIRectDest == *pIRectSrc) … … 2474 2474 if( (dwFlags &DDBLT_KEYSRC) || (dwFlags & DDBLT_KEYSRCOVERRIDE) ) 2475 2475 { 2476 WriteLog("Transparent src blit not done yet for primary!!");2476 dprintf(("Transparent src blit not done yet for primary!!")); 2477 2477 } 2478 2478 else 2479 2479 { 2480 WriteLog("Unhandled Flags Destination colorkey ? 0x%04X",dwFlags);2480 dprintf(("Unhandled Flags Destination colorkey ? 0x%04X",dwFlags)); 2481 2481 } 2482 2482 } … … 2533 2533 else 2534 2534 { 2535 WriteLog("Transblt not done yet");2535 dprintf(("Transblt not done yet")); 2536 2536 if(dwFlags & DDBLT_KEYSRC) 2537 2537 { … … 2996 2996 { 2997 2997 #ifdef DEBUG 2998 WriteLog("SurfBltBatch Not implemented by M$\n");2998 dprintf(("SurfBltBatch Not implemented by M$\n")); 2999 2999 #endif 3000 3000 … … 3006 3006 { 3007 3007 #ifdef DEBUG 3008 WriteLog("SurfBltFast NIY\n");3008 dprintf(("SurfBltFast NIY\n")); 3009 3009 #endif 3010 3010 … … 3027 3027 3028 3028 #ifdef DEBUG 3029 WriteLog("SurfBltFast4 %08X at(%d/%d) onto %08X with flags %08X\n",src, dwX,dwY, dest, dwTrans);3029 dprintf(("SurfBltFast4 %08X at(%d/%d) onto %08X with flags %08X\n",src, dwX,dwY, dest, dwTrans)); 3030 3030 #endif 3031 3031 … … 3035 3035 (dwY>dest->height)) 3036 3036 { 3037 WriteLog("Invalid Parameters %08X, %d %d", lpDDSrcSurface ,dest->width , dest->height);3037 dprintf(("Invalid Parameters %08X, %d %d", lpDDSrcSurface ,dest->width , dest->height)); 3038 3038 return DDERR_INVALIDPARAMS; 3039 3039 } … … 3067 3067 if(DDBLTFAST_NOCOLORKEY == dwTrans ) 3068 3068 { 3069 WriteLog("Solid Blit");3069 dprintf(("Solid Blit")); 3070 3070 #ifdef USE_ASM 3071 3071 BltRec(pBltPos, pSrcPos, BlitWidth, BlitHeight, … … 3087 3087 else 3088 3088 { 3089 WriteLog("TransBlit\n");3089 dprintf(("TransBlit\n")); 3090 3090 3091 3091 if(dwTrans & DDBLTFAST_SRCCOLORKEY) 3092 3092 { 3093 WriteLog("Trans SRC\n");3093 dprintf(("Trans SRC\n")); 3094 3094 // transparent source 3095 3095 dwSrcColor = src->DDSurfaceDesc.ddckCKSrcBlt.dwColorSpaceLowValue; 3096 3096 if(dwTrans & DDBLTFAST_DESTCOLORKEY) 3097 3097 { 3098 WriteLog("And Dest Colorkey");3098 dprintf(("And Dest Colorkey")); 3099 3099 dwDestColor = dest->DDSurfaceDesc.ddckCKDestBlt.dwColorSpaceLowValue; 3100 3100 // Source and dest colorkeying … … 3193 3193 // This MMX detection should be moved into OS2Draw 3194 3194 // and into the surface constructor a setup for blitting pointers 3195 WriteLog("Only Src ColorKey");3195 dprintf(("Only Src ColorKey")); 3196 3196 switch(dest->dwBytesPPDive) 3197 3197 { … … 3264 3264 if(dwTrans & DDBLTFAST_DESTCOLORKEY) 3265 3265 { 3266 WriteLog("DestColorKey\n");3266 dprintf(("DestColorKey\n")); 3267 3267 3268 3268 dwDestColor = dest->DDSurfaceDesc.ddckCKDestBlt.dwColorSpaceLowValue; … … 3344 3344 else 3345 3345 { 3346 WriteLog("Unexpected Flags");3346 dprintf(("Unexpected Flags")); 3347 3347 } 3348 3348 } … … 3359 3359 OS2IDirectDrawSurface *me = (OS2IDirectDrawSurface *)This; 3360 3360 #ifdef DEBUG 3361 WriteLog("SurfDeleteAttachedSurface\n");3361 dprintf(("SurfDeleteAttachedSurface\n")); 3362 3362 #endif 3363 3363 … … 3376 3376 BOOL Found = FALSE; 3377 3377 #ifdef DEBUG 3378 WriteLog("SurfDeleteAttachedSurface\n");3378 dprintf(("SurfDeleteAttachedSurface\n")); 3379 3379 #endif 3380 3380 … … 3518 3518 OS2IDirectDrawSurface *me = (OS2IDirectDrawSurface *)This; 3519 3519 #ifdef DEBUG 3520 WriteLog("SurfEnumAttachedSurfaces\n");3520 dprintf(("SurfEnumAttachedSurfaces\n")); 3521 3521 #endif 3522 3522 … … 3534 3534 3535 3535 #ifdef DEBUG 3536 WriteLog("SurfEnumAttachedSurfaces\n");3536 dprintf(("SurfEnumAttachedSurfaces\n")); 3537 3537 #endif 3538 3538 if (NULL==lpCallBack) … … 3588 3588 { 3589 3589 #ifdef DEBUG 3590 WriteLog("SurfEnumOverlayZOrders\n");3590 dprintf(("SurfEnumOverlayZOrders\n")); 3591 3591 #endif 3592 3592 … … 3598 3598 { 3599 3599 #ifdef DEBUG 3600 WriteLog("SurfEnumOverlayZOrders\n");3600 dprintf(("SurfEnumOverlayZOrders\n")); 3601 3601 #endif 3602 3602 … … 3609 3609 OS2IDirectDrawSurface *me = (OS2IDirectDrawSurface *)This; 3610 3610 #ifdef DEBUG 3611 WriteLog("SurfFlip\n");3611 dprintf(("SurfFlip\n")); 3612 3612 #endif 3613 3613 … … 3626 3626 3627 3627 #ifdef DEBUG 3628 WriteLog("SurfFlip4\n");3628 dprintf(("SurfFlip4\n")); 3629 3629 #endif 3630 3630 if(!((me->DDSurfaceDesc.ddsCaps.dwCaps & DDSCAPS_FRONTBUFFER) && … … 3633 3633 { 3634 3634 #ifdef DEBUG 3635 WriteLog("Flip called on none Frontbuffer/Flip surface\n Flags:\n");3635 dprintf(("Flip called on none Frontbuffer/Flip surface\n Flags:\n")); 3636 3636 _dump_DDSCAPS(me->DDSurfaceDesc.ddsCaps.dwCaps); 3637 WriteLog("\n");3637 dprintf(("\n")); 3638 3638 #endif 3639 3639 return(DDERR_NOTFLIPPABLE); … … 3643 3643 { 3644 3644 #ifdef DEBUG 3645 WriteLog("Check if Surface is in Flipchain!\n");3645 dprintf(("Check if Surface is in Flipchain!\n")); 3646 3646 #endif 3647 3647 … … 3657 3657 { 3658 3658 #ifdef DEBUG 3659 WriteLog("Surface not in Flipchain!\n");3659 dprintf(("Surface not in Flipchain!\n")); 3660 3660 #endif 3661 3661 return (DDERR_INVALIDPARAMS); // Not sure if the returnvalue is right … … 3666 3666 FlipSurface = me->NextFlip; // Take the next Surface in the Flipchain 3667 3667 #ifdef DEBUG 3668 WriteLog("Next Surface @ 0x%08X\n",FlipSurface);3668 dprintf(("Next Surface @ 0x%08X\n",FlipSurface)); 3669 3669 #endif 3670 3670 } … … 3673 3673 { 3674 3674 #ifdef DEBUG 3675 WriteLog("Locked surface(s) Dest %d Src %d\n",me->fLocked,FlipSurface->fLocked);3675 dprintf(("Locked surface(s) Dest %d Src %d\n",me->fLocked,FlipSurface->fLocked)); 3676 3676 #endif 3677 3677 return(DDERR_SURFACEBUSY); … … 3681 3681 { 3682 3682 #ifdef DEBUG 3683 WriteLog("DIVE Flipchain");3683 dprintf(("DIVE Flipchain")); 3684 3684 #endif 3685 3685 … … 3692 3692 3693 3693 #ifdef DEBUG 3694 WriteLog("DiveBlitImage rc = 0x%08X\n");3694 dprintf(("DiveBlitImage rc = 0x%08X\n")); 3695 3695 #endif 3696 3696 … … 3704 3704 { 3705 3705 #ifdef DEBUG 3706 WriteLog("Memory Flipchain");3706 dprintf(("Memory Flipchain")); 3707 3707 #endif 3708 3708 // Memory Flipchain … … 3757 3757 OS2IDirectDrawSurface *me = (OS2IDirectDrawSurface *)This; 3758 3758 #ifdef DEBUG 3759 WriteLog("SurfGetAttachedSurface\n");3759 dprintf(("SurfGetAttachedSurface\n")); 3760 3760 #endif 3761 3761 … … 3774 3774 3775 3775 #ifdef DEBUG 3776 WriteLog("SurfGetAttachedSurface4\n>Requested Caps: ");3776 dprintf(("SurfGetAttachedSurface4\n>Requested Caps: ")); 3777 3777 _dump_DDSCAPS(lpDDCaps->dwCaps); 3778 WriteLog("\n");3778 dprintf(("\n")); 3779 3779 #endif 3780 3780 3781 3781 if( (NULL==lpDDCaps)||(NULL==lpDDSurf)) 3782 3782 { 3783 WriteLog("Invalid params\n\n");3783 dprintf(("Invalid params\n\n")); 3784 3784 return (DDERR_INVALIDPARAMS); 3785 3785 } … … 3791 3791 (me->BackBuffer->DDSurfaceDesc.ddsCaps.dwCaps & lpDDCaps->dwCaps) ) 3792 3792 { 3793 WriteLog("Return Backbuffer\n");3793 dprintf(("Return Backbuffer\n")); 3794 3794 AttachedSurface = me->BackBuffer; 3795 3795 } … … 3854 3854 { 3855 3855 #ifdef DEBUG 3856 WriteLog("SurfGetBltStatus\n");3856 dprintf(("SurfGetBltStatus\n")); 3857 3857 #endif 3858 3858 … … 3866 3866 3867 3867 #ifdef DEBUG 3868 WriteLog("SurfGetCaps\n");3868 dprintf(("SurfGetCaps\n")); 3869 3869 #endif 3870 3870 … … 3884 3884 OS2IDirectDrawSurface *me = (OS2IDirectDrawSurface *)This; 3885 3885 #ifdef DEBUG 3886 WriteLog("SurfGetCaps4\n");3886 dprintf(("SurfGetCaps4\n")); 3887 3887 #endif 3888 3888 … … 3906 3906 3907 3907 #ifdef DEBUG 3908 WriteLog("SurfGetClipper\n");3908 dprintf(("SurfGetClipper\n")); 3909 3909 #endif 3910 3910 … … 3924 3924 3925 3925 #ifdef DEBUG 3926 WriteLog("SurfGetColorKey\n");3926 dprintf(("SurfGetColorKey\n")); 3927 3927 #endif 3928 3928 … … 3963 3963 3964 3964 #ifdef DEBUG 3965 WriteLog("SurfGetDC\n");3965 dprintf(("SurfGetDC\n")); 3966 3966 #endif 3967 3967 … … 3985 3985 { 3986 3986 #ifdef DEBUG 3987 WriteLog("Can't create compatible DC!\n");3987 dprintf(("Can't create compatible DC!\n")); 3988 3988 #endif 3989 3989 me->Vtbl.Unlock(me,NULL); … … 3995 3995 (me->hbmImage == NULL) ) 3996 3996 { 3997 WriteLog("Trying to create Bitmap (%d/%d) at %d Bit\n",3997 dprintf( ("Trying to create Bitmap (%d/%d) at %d Bit\n", 3998 3998 LockedSurfaceDesc.lPitch/ (LockedSurfaceDesc.ddpfPixelFormat.dwRGBBitCount>>3), 3999 3999 LockedSurfaceDesc.dwHeight, 4000 4000 LockedSurfaceDesc.ddpfPixelFormat.dwRGBBitCount 4001 ) ;4001 )); 4002 4002 #if 0 4003 4003 memset(&BitmapInfo, 0, sizeof(BitmapInfo)); … … 4019 4019 case 1: 4020 4020 case 4: 4021 WriteLog("1/4 Bit Not yet supported\n");4021 dprintf(("1/4 Bit Not yet supported\n")); 4022 4022 break; 4023 4023 case 8: … … 4038 4038 case 16: 4039 4039 case 32: 4040 WriteLog("16/32 Bit not supported by OS/2");4040 dprintf(("16/32 Bit not supported by OS/2")); 4041 4041 break; 4042 4042 case 24: … … 4056 4056 default: 4057 4057 #ifdef DEBUG 4058 WriteLog("Unexptected BitCount %d \n",4059 LockedSurfaceDesc.ddpfPixelFormat.dwRGBBitCount) ;4058 dprintf( ("Unexptected BitCount %d \n", 4059 LockedSurfaceDesc.ddpfPixelFormat.dwRGBBitCount)); 4060 4060 #endif 4061 4061 me->hbmImage=NULL; … … 4065 4065 { 4066 4066 #ifdef DEBUG 4067 WriteLog("Can't create bitmap!\n");4067 dprintf(("Can't create bitmap!\n")); 4068 4068 #endif 4069 4069 DeleteDC(me->hdcImage); … … 4079 4079 { 4080 4080 #ifdef DEBUG 4081 WriteLog("The Surface was locked/unlocked after the last DC was created =>Update Bitmap!\n");4081 dprintf(("The Surface was locked/unlocked after the last DC was created =>Update Bitmap!\n")); 4082 4082 #endif 4083 4083 … … 4116 4116 default: 4117 4117 #ifdef DEBUG 4118 WriteLog("Unexptected BitCount %d => Bitmap not updated!\n",LockedSurfaceDesc.ddpfPixelFormat.dwRGBBitCount);4118 dprintf(("Unexptected BitCount %d => Bitmap not updated!\n",LockedSurfaceDesc.ddpfPixelFormat.dwRGBBitCount)); 4119 4119 #endif 4120 4120 break; … … 4131 4131 { 4132 4132 #ifdef DEBUG 4133 WriteLog("Can't select bitmap into dc!\n");4133 dprintf(("Can't select bitmap into dc!\n")); 4134 4134 #endif 4135 4135 DeleteDC(me->hdcImage); … … 4153 4153 { 4154 4154 #ifdef DEBUG 4155 WriteLog("SurfGetFlipStatus\n");4155 dprintf(("SurfGetFlipStatus\n")); 4156 4156 #endif 4157 4157 … … 4167 4167 OS2IDirectDrawSurface *me = (OS2IDirectDrawSurface *)This; 4168 4168 #ifdef DEBUG 4169 WriteLog("SurfGetOverlayPosition\n");4169 dprintf(("SurfGetOverlayPosition\n")); 4170 4170 #endif 4171 4171 … … 4196 4196 4197 4197 #ifdef DEBUG 4198 WriteLog("SurfGetPalette\n");4198 dprintf(("SurfGetPalette\n")); 4199 4199 #endif 4200 4200 … … 4214 4214 4215 4215 #ifdef DEBUG 4216 WriteLog("SurfGetPixelFormat\n");4216 dprintf(("SurfGetPixelFormat\n")); 4217 4217 #endif 4218 4218 … … 4233 4233 4234 4234 #ifdef DEBUG 4235 WriteLog("SurfGetSurfaceDesc\n");4235 dprintf(("SurfGetSurfaceDesc\n")); 4236 4236 #endif 4237 4237 … … 4252 4252 4253 4253 #ifdef DEBUG 4254 WriteLog("SurfGetSurfaceDesc4\n");4254 dprintf(("SurfGetSurfaceDesc4\n")); 4255 4255 #endif 4256 4256 … … 4269 4269 { 4270 4270 #ifdef DEBUG 4271 WriteLog("SurfInitialize\n");4271 dprintf(("SurfInitialize\n")); 4272 4272 #endif 4273 4273 … … 4279 4279 { 4280 4280 #ifdef DEBUG 4281 WriteLog("SurfInitialize\n");4281 dprintf(("SurfInitialize\n")); 4282 4282 #endif 4283 4283 … … 4293 4293 // 4294 4294 #ifdef DEBUG 4295 WriteLog("SurfIsLost\n");4295 dprintf(("SurfIsLost\n")); 4296 4296 #endif 4297 4297 … … 4310 4310 4311 4311 #ifdef DEBUG 4312 WriteLog("SurfLock %d %08X %d %d\n", (int)lpRect, (int)lpSurfaceDesc, dwFlags, hEvent);4312 dprintf(("SurfLock %d %08X %d %d\n", (int)lpRect, (int)lpSurfaceDesc, dwFlags, hEvent)); 4313 4313 #endif 4314 4314 … … 4355 4355 4356 4356 #ifdef DEBUG 4357 WriteLog("SurfLock4 %08X %08X %d %d\n", (int)lpRect, (int)lpSurfaceDesc, dwFlags, hEvent);4357 dprintf(("SurfLock4 %08X %08X %d %d\n", (int)lpRect, (int)lpSurfaceDesc, dwFlags, hEvent)); 4358 4358 #endif 4359 4359 … … 4370 4370 4371 4371 // ToDo : the lockchecking should be done in a critcal seq. 4372 WriteLog("Lock Rectangle (%d/%d) x (%d/%d)\n",4372 dprintf( ("Lock Rectangle (%d/%d) x (%d/%d)\n", 4373 4373 pIRectNew->Top(), 4374 4374 pIRectNew->Left(), 4375 4375 pIRectNew->Bottom(), 4376 pIRectNew->Right() ) ;4376 pIRectNew->Right() )); 4377 4377 4378 4378 rc = DD_OK; … … 4383 4383 { 4384 4384 // If anything is locked we can't locke the complete surface 4385 WriteLog("Surface has locked Rectangles, and we want to complete lock it\n");4385 dprintf(("Surface has locked Rectangles, and we want to complete lock it\n")); 4386 4386 Found = TRUE; 4387 4387 } … … 4391 4391 // be locked so check for this 4392 4392 4393 WriteLog("Surface has locked Rectangles, check if the overlap\n");4393 dprintf(("Surface has locked Rectangles, check if the overlap\n")); 4394 4394 4395 4395 i=0; … … 4399 4399 { 4400 4400 pIRectCurrent = (DDRectangle*) DPA_FastGetPtr(me->DPA_LockedRects,i); 4401 WriteLog("Test with Rectangle (%d/%d) x (%d/%d)\n",4401 dprintf( ("Test with Rectangle (%d/%d) x (%d/%d)\n", 4402 4402 pIRectCurrent->Top(), 4403 4403 pIRectCurrent->Left(), 4404 4404 pIRectCurrent->Bottom(), 4405 pIRectCurrent->Right() ) ;4405 pIRectCurrent->Right() )); 4406 4406 Found = pIRectCurrent->intersects(*pIRectNew); 4407 4407 i++; … … 4414 4414 delete pIRectNew; 4415 4415 #ifdef DEBUG 4416 WriteLog("SurfLock4: Surface already locked\n\n");4416 dprintf(("SurfLock4: Surface already locked\n\n")); 4417 4417 #endif 4418 4418 rc = DDERR_SURFACEBUSY; … … 4431 4431 (lpRect->left * (lpSurfaceDesc->ddpfPixelFormat.dwRGBBitCount>>3))); 4432 4432 #ifdef DEBUG 4433 WriteLog("SurfLock4 %08X (x,y) = (%d,%d)\n\n", lpSurfaceDesc->lpSurface, lpRect->top, lpRect->left);4433 dprintf(("SurfLock4 %08X (x,y) = (%d,%d)\n\n", lpSurfaceDesc->lpSurface, lpRect->top, lpRect->left)); 4434 4434 #endif 4435 4435 } … … 4437 4437 { 4438 4438 #ifdef DEBUG 4439 WriteLog("SurfLock4 %08X \n\n", lpSurfaceDesc->lpSurface);4439 dprintf(("SurfLock4 %08X \n\n", lpSurfaceDesc->lpSurface)); 4440 4440 #endif 4441 4441 } … … 4469 4469 4470 4470 #ifdef DEBUG 4471 WriteLog("SurfReleaseDC\n");4471 dprintf(("SurfReleaseDC\n")); 4472 4472 #endif 4473 4473 … … 4500 4500 (PBITMAPINFO)&BitmapInfo, 4501 4501 DIB_RGB_COLORS); 4502 WriteLog("GetDIBits rc=%d\n Size :%d\n Width :%d\n Height :%d\n"4502 dprintf( ("GetDIBits rc=%d\n Size :%d\n Width :%d\n Height :%d\n" 4503 4503 " Planes :%d\n BitCount :%d\nLastEror = %d\nPixel[0,0] = 0x%02X\n", 4504 4504 rc, … … 4509 4509 BitmapInfo.bmiHead.biBitCount, 4510 4510 GetLastError(), 4511 ((char*)me->DDSurfaceDesc.lpSurface)[0]) ;4511 ((char*)me->DDSurfaceDesc.lpSurface)[0])); 4512 4512 rc = GetDIBits( hdc, 4513 4513 me->hbmImage, … … 4517 4517 (PBITMAPINFO)&BitmapInfo, 4518 4518 DIB_RGB_COLORS); 4519 WriteLog("GetDIBits rc=%d\n LastEror = %d\nPixel[0,0] = 0x%02X\n",4519 dprintf( ("GetDIBits rc=%d\n LastEror = %d\nPixel[0,0] = 0x%02X\n", 4520 4520 rc, 4521 4521 GetLastError(), 4522 ((char*)me->DDSurfaceDesc.lpSurface)[0]) ;4522 ((char*)me->DDSurfaceDesc.lpSurface)[0])); 4523 4523 break; 4524 4524 case 16: … … 4539 4539 default: 4540 4540 #ifdef DEBUG 4541 WriteLog("Unexptected BitCount %d => Surface unlocked but no data copied back\n",me->DDSurfaceDesc.ddpfPixelFormat.dwRGBBitCount);4541 dprintf(("Unexptected BitCount %d => Surface unlocked but no data copied back\n",me->DDSurfaceDesc.ddpfPixelFormat.dwRGBBitCount)); 4542 4542 #endif 4543 4543 // we might could keep the surface locked and return an error but this is more "safe" … … 4549 4549 sizeof(BITMAP), 4550 4550 &bmpData); 4551 WriteLog("GetObject returned rc=%d\n BitmapInfo:\n Size:(%dx%d)\n Pitch: %d\n Bits %d\n @mem %08X",4551 dprintf( ("GetObject returned rc=%d\n BitmapInfo:\n Size:(%dx%d)\n Pitch: %d\n Bits %d\n @mem %08X", 4552 4552 rc, 4553 4553 bmpData.bmWidth, bmpData.bmHeight, 4554 4554 bmpData.bmWidthBytes, 4555 4555 bmpData.bmBitsPixel, 4556 bmpData.bmBits) ;4556 bmpData.bmBits)); 4557 4557 #endif 4558 4558 me->Vtbl.Unlock(me,NULL); … … 4566 4566 { 4567 4567 #ifdef DEBUG 4568 WriteLog("SurfRestore\n");4568 dprintf(("SurfRestore\n")); 4569 4569 #endif 4570 4570 … … 4578 4578 4579 4579 #ifdef DEBUG 4580 WriteLog("SurfSetClipper\n");4580 dprintf(("SurfSetClipper\n")); 4581 4581 #endif 4582 4582 … … 4615 4615 HRESULT rc; 4616 4616 #ifdef DEBUG 4617 WriteLog("SurfSetColorKey\n");4617 dprintf(("SurfSetColorKey\n")); 4618 4618 #endif 4619 4619 … … 4654 4654 4655 4655 #ifdef DEBUG 4656 WriteLog("SurfSetOverlayPosition\n");4656 dprintf(("SurfSetOverlayPosition\n")); 4657 4657 #endif 4658 4658 … … 4683 4683 4684 4684 #ifdef DEBUG 4685 WriteLog("SurfSetPalette\n");4685 dprintf(("SurfSetPalette\n")); 4686 4686 #endif 4687 4687 … … 4746 4746 4747 4747 #ifdef DEBUG 4748 WriteLog("SurfUnlock at %08X\n",lpSurfaceData);4748 dprintf(("SurfUnlock at %08X\n",lpSurfaceData)); 4749 4749 #endif 4750 4750 … … 4752 4752 { 4753 4753 #ifdef DEBUG 4754 WriteLog("Surface not locked!\n");4754 dprintf(("Surface not locked!\n")); 4755 4755 #endif 4756 4756 return(DDERR_NOTLOCKED); … … 4758 4758 4759 4759 #ifdef DEBUG 4760 WriteLog("Start Emuneration of Locked Rects\n");4760 dprintf(("Start Emuneration of Locked Rects\n")); 4761 4761 #endif 4762 4762 … … 4764 4764 if(NULL!=lpSurfaceData) 4765 4765 { 4766 WriteLog("Buffer Pointer Compare");4766 dprintf(("Buffer Pointer Compare")); 4767 4767 4768 4768 // We got a pinter to the surface memory so we must search for … … 4772 4772 { 4773 4773 pIRectEnum = (DDRectangle*)DPA_FastGetPtr(me->DPA_LockedRects,i); 4774 WriteLog( "Test with Rectangle %d (%d/%d) x (%d/%d) Mem at %08X\n",4774 dprintf(( "Test with Rectangle %d (%d/%d) x (%d/%d) Mem at %08X\n", 4775 4775 i, 4776 4776 pIRectEnum->Top(), … … 4778 4778 pIRectEnum->Bottom(), 4779 4779 pIRectEnum->Right(), 4780 pIRectEnum->GetMemPtr() ) ;4780 pIRectEnum->GetMemPtr() )); 4781 4781 4782 4782 Found = ( pIRectEnum->GetMemPtr() == lpSurfaceData); … … 4784 4784 { 4785 4785 #ifdef DEBUG 4786 WriteLog("Not Found, try Next rect\n");4786 dprintf(("Not Found, try Next rect\n")); 4787 4787 #endif 4788 4788 i++; … … 4791 4791 else 4792 4792 { 4793 WriteLog("Found Rect\n");4793 dprintf(("Found Rect\n")); 4794 4794 } 4795 4795 #endif … … 4800 4800 // If a NULL pointer was passed in the SW tries to unlock the 4801 4801 // complete surface so we must compare the rects. 4802 WriteLog("Rectangle compare");4802 dprintf(("Rectangle compare")); 4803 4803 4804 4804 pIRectUnlock = new DDRectangle( 0, 0, me->height, me->width); … … 4807 4807 { 4808 4808 pIRectEnum = (DDRectangle*)DPA_FastGetPtr(me->DPA_LockedRects,i); 4809 WriteLog( "Test with Rectangle %d (%d/%d) x (%d/%d) Mem at %08X\n",4809 dprintf(( "Test with Rectangle %d (%d/%d) x (%d/%d) Mem at %08X\n", 4810 4810 i, 4811 4811 pIRectEnum->Top(), … … 4813 4813 pIRectEnum->Bottom(), 4814 4814 pIRectEnum->Right(), 4815 pIRectEnum->GetMemPtr() ) ;4815 pIRectEnum->GetMemPtr() )); 4816 4816 4817 4817 Found = (*pIRectEnum == *pIRectUnlock); … … 4819 4819 { 4820 4820 #ifdef DEBUG 4821 WriteLog("Not Found, try Next rect\n");4821 dprintf(("Not Found, try Next rect\n")); 4822 4822 #endif 4823 4823 i++; … … 4826 4826 else 4827 4827 { 4828 WriteLog("Found Rect\n");4828 dprintf(("Found Rect\n")); 4829 4829 } 4830 4830 #endif … … 4836 4836 { 4837 4837 #ifdef DEBUG 4838 WriteLog("Rectangle not locked, wrong Rect!\n\n");4838 dprintf(("Rectangle not locked, wrong Rect!\n\n")); 4839 4839 #endif 4840 4840 rc = DDERR_INVALIDRECT; … … 4843 4843 { 4844 4844 #ifdef DEBUG 4845 WriteLog("Remove Rect %d from Seq.\n",i);4845 dprintf(("Remove Rect %d from Seq.\n",i)); 4846 4846 #endif 4847 4847 … … 4849 4849 4850 4850 #ifdef DEBUG 4851 WriteLog("Test if locked Rects main\n");4851 dprintf(("Test if locked Rects main\n")); 4852 4852 #endif 4853 4853 … … 4855 4855 { 4856 4856 #ifdef DEBUG 4857 WriteLog("No Locked Rects left for surface\n");4857 dprintf(("No Locked Rects left for surface\n")); 4858 4858 #endif 4859 4859 me->fLocked = FALSE; … … 4861 4861 #ifdef DEBUG 4862 4862 else 4863 WriteLog( "%d Rects in Seq\n",4864 DPA_GetPtrCount(me->DPA_LockedRects)) ;4863 dprintf(( "%d Rects in Seq\n", 4864 DPA_GetPtrCount(me->DPA_LockedRects))); 4865 4865 #endif 4866 4866 … … 4868 4868 { 4869 4869 #ifdef DEBUG 4870 WriteLog( "ColorConversion Needed %08X != %08X\n",4870 dprintf(( "ColorConversion Needed %08X != %08X\n", 4871 4871 me->pFrameBuffer, 4872 me->pDiveBuffer) ;4872 me->pDiveBuffer)); 4873 4873 #endif 4874 4874 if(NULL!=lpSurfaceData) … … 4888 4888 #ifdef DEBUG 4889 4889 else 4890 WriteLog( "No ColorConversion Needed");4890 dprintf( ("No ColorConversion Needed")); 4891 4891 #endif 4892 4892 … … 4896 4896 me->lpVtbl->ChangeUniquenessValue(me); 4897 4897 4898 WriteLog("Unlock OK\n\n");4898 dprintf(("Unlock OK\n\n")); 4899 4899 4900 4900 rc = DD_OK; … … 4922 4922 4923 4923 #ifdef DEBUG 4924 WriteLog("SurfUnlock4\n");4924 dprintf(("SurfUnlock4\n")); 4925 4925 #endif 4926 4926 … … 4928 4928 { 4929 4929 #ifdef DEBUG 4930 WriteLog("Surface not locked!\n");4930 dprintf(("Surface not locked!\n")); 4931 4931 #endif 4932 4932 return(DDERR_NOTLOCKED); … … 4935 4935 if(NULL!=lpSurfaceRect) 4936 4936 { 4937 WriteLog("Unlock rectangle\n");4937 dprintf(("Unlock rectangle\n")); 4938 4938 pIRectUnlock = new DDRectangle( lpSurfaceRect->top, 4939 4939 lpSurfaceRect->left, … … 4943 4943 else 4944 4944 { 4945 WriteLog("Unlock complete surface\n");4945 dprintf(("Unlock complete surface\n")); 4946 4946 pIRectUnlock = new DDRectangle( 0, 0, me->height, me->width); 4947 4947 } 4948 4948 4949 WriteLog( "Try to Unlock Rectangle (%d/%d) x (%d/%d)\n",4949 dprintf(( "Try to Unlock Rectangle (%d/%d) x (%d/%d)\n", 4950 4950 pIRectUnlock->Top(), 4951 4951 pIRectUnlock->Left(), 4952 4952 pIRectUnlock->Bottom(), 4953 pIRectUnlock->Right() ) ;4954 4955 #ifdef DEBUG 4956 WriteLog("Start Emuneration of Locked Rects\n");4953 pIRectUnlock->Right() )); 4954 4955 #ifdef DEBUG 4956 dprintf(("Start Emuneration of Locked Rects\n")); 4957 4957 #endif 4958 4958 … … 4961 4961 { 4962 4962 pIRectEnum = (DDRectangle*)DPA_FastGetPtr(me->DPA_LockedRects,i); 4963 WriteLog( "Test with Rectangle (%d/%d) x (%d/%d)\n",4963 dprintf(( "Test with Rectangle (%d/%d) x (%d/%d)\n", 4964 4964 pIRectEnum->Top(), 4965 4965 pIRectEnum->Left(), 4966 4966 pIRectEnum->Bottom(), 4967 pIRectEnum->Right() ) ;4967 pIRectEnum->Right() )); 4968 4968 4969 4969 Found = (*pIRectEnum == *pIRectUnlock); … … 4971 4971 { 4972 4972 #ifdef DEBUG 4973 WriteLog("Not Found, try Next rect\n");4973 dprintf(("Not Found, try Next rect\n")); 4974 4974 #endif 4975 4975 i++; … … 4978 4978 else 4979 4979 { 4980 WriteLog("Found Rect\n");4980 dprintf(("Found Rect\n")); 4981 4981 } 4982 4982 #endif … … 4989 4989 { 4990 4990 #ifdef DEBUG 4991 WriteLog("Rectangle not locked, wrong Rect!\n\n");4991 dprintf(("Rectangle not locked, wrong Rect!\n\n")); 4992 4992 #endif 4993 4993 return(DDERR_INVALIDRECT); … … 4999 4999 { 5000 5000 #ifdef DEBUG 5001 WriteLog("Remove Rect from Seq.\n");5001 dprintf(("Remove Rect from Seq.\n")); 5002 5002 #endif 5003 5003 … … 5007 5007 { 5008 5008 #ifdef DEBUG 5009 WriteLog("No Locked Rects left for surface\n");5009 dprintf(("No Locked Rects left for surface\n")); 5010 5010 #endif 5011 5011 me->fLocked = FALSE; … … 5015 5015 { 5016 5016 #ifdef DEBUG 5017 WriteLog( "ColorConversion Needed %08X != %08X\n",5017 dprintf(( "ColorConversion Needed %08X != %08X\n", 5018 5018 me->pFrameBuffer, 5019 me->pDiveBuffer) ;5019 me->pDiveBuffer)); 5020 5020 #endif 5021 5021 me->ColorConversion(lpSurfaceRect); … … 5024 5024 me->lpVtbl->ChangeUniquenessValue(me); 5025 5025 5026 WriteLog("Unlock OK\n\n");5026 dprintf(("Unlock OK\n\n")); 5027 5027 rc = DD_OK; 5028 5028 } … … 5035 5035 { 5036 5036 #ifdef DEBUG 5037 WriteLog("SurfUpdateOverlay\n");5037 dprintf(("SurfUpdateOverlay\n")); 5038 5038 #endif 5039 5039 return(DD_OK); … … 5044 5044 { 5045 5045 #ifdef DEBUG 5046 WriteLog("SurfUpdateOverlay\n");5046 dprintf(("SurfUpdateOverlay\n")); 5047 5047 #endif 5048 5048 return(DD_OK); … … 5053 5053 { 5054 5054 #ifdef DEBUG 5055 WriteLog("SurfUpdateOverlayDisplay\n");5055 dprintf(("SurfUpdateOverlayDisplay\n")); 5056 5056 #endif 5057 5057 return(DD_OK); … … 5062 5062 { 5063 5063 #ifdef DEBUG 5064 WriteLog("SurfUpdateOverlayZOrder\n");5064 dprintf(("SurfUpdateOverlayZOrder\n")); 5065 5065 #endif 5066 5066 return(DD_OK); … … 5071 5071 { 5072 5072 #ifdef DEBUG 5073 WriteLog("SurfUpdateOverlayZOrder4\n");5073 dprintf(("SurfUpdateOverlayZOrder4\n")); 5074 5074 #endif 5075 5075 return(DD_OK); … … 5082 5082 5083 5083 #ifdef DEBUG 5084 WriteLog("SurfGetDDInterface\n");5084 dprintf(("SurfGetDDInterface\n")); 5085 5085 #endif 5086 5086 *lplpDirectDraw = (LPVOID FAR *)me->lpDraw; … … 5095 5095 // from malloc to DosAllocMem and use OBJ_TILE flag 5096 5096 #ifdef DEBUG 5097 WriteLog("SurfPageLock\n");5097 dprintf(("SurfPageLock\n")); 5098 5098 #endif 5099 5099 return(DD_OK); … … 5104 5104 { 5105 5105 #ifdef DEBUG 5106 WriteLog("SurfPageUnlock\n");5106 dprintf(("SurfPageUnlock\n")); 5107 5107 #endif 5108 5108 return(DD_OK); … … 5115 5115 { 5116 5116 #ifdef DEBUG 5117 WriteLog("SurfSetSurfaceDesc\n");5117 dprintf(("SurfSetSurfaceDesc\n")); 5118 5118 #endif 5119 5119 … … 5146 5146 { 5147 5147 #ifdef DEBUG 5148 WriteLog("SurfSetSurfaceDesc4\n");5148 dprintf(("SurfSetSurfaceDesc4\n")); 5149 5149 #endif 5150 5150 … … 5187 5187 5188 5188 #ifdef DEBUG 5189 WriteLog("SurfSetPrivateData\n");5189 dprintf(("SurfSetPrivateData\n")); 5190 5190 #endif 5191 5191 … … 5370 5370 5371 5371 #ifdef DEBUG 5372 WriteLog("SurfGetPrivateData\n");5372 dprintf(("SurfGetPrivateData\n")); 5373 5373 #endif 5374 5374 … … 5430 5430 5431 5431 #ifdef DEBUG 5432 WriteLog("SurfFreePrivateData\n");5432 dprintf(("SurfFreePrivateData\n")); 5433 5433 #endif 5434 5434 … … 5475 5475 { 5476 5476 #ifdef DEBUG 5477 WriteLog("SurfGetUniquenessValue\n");5477 dprintf(("SurfGetUniquenessValue\n")); 5478 5478 #endif 5479 5479 OS2IDirectDrawSurface *me = (OS2IDirectDrawSurface *)This; … … 5494 5494 5495 5495 #ifdef DEBUG 5496 WriteLog("SurfChangeUniquenessValue\n");5496 dprintf(("SurfChangeUniquenessValue\n")); 5497 5497 #endif 5498 5498 me->dwUniqueValue++;
Note:
See TracChangeset
for help on using the changeset viewer.