Changeset 10167 for trunk/src/gdi32/blit.cpp
- Timestamp:
- Jul 16, 2003, 12:46:18 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/blit.cpp
r10059 r10167 1 /* $Id: blit.cpp,v 1.4 4 2003-05-02 15:32:27sandervl Exp $ */1 /* $Id: blit.cpp,v 1.45 2003-07-16 10:46:16 sandervl Exp $ */ 2 2 3 3 /* … … 183 183 184 184 newbits = (WORD *)malloc(imgsize); 185 if(CPUFeatures & CPUID_MMX) { 186 RGB555to565MMX(newbits, (WORD *)bits, imgsize/sizeof(WORD)); 187 } 188 else 189 RGB555to565(newbits, (WORD *)bits, imgsize/sizeof(WORD)); 185 pRGB555to565(newbits, (WORD *)bits, imgsize/sizeof(WORD)); 190 186 bits = newbits; 191 187 } … … 469 465 break; 470 466 } 467 471 468 if(bitfields[1] == RGB555_GREEN_MASK) 472 469 {//RGB 555? … … 474 471 475 472 ULONG imgsize = CalcBitmapSize(info->bmiHeader.biBitCount, 476 widthSrc, heightSrc);473 abs(info->bmiHeader.biWidth), heightSrc); 477 474 ULONG offset = CalcBitmapSize(info->bmiHeader.biBitCount, 478 xSrc, ySrc)/sizeof(WORD);475 abs(info->bmiHeader.biWidth), ySrc)/sizeof(WORD); 479 476 newbits = (WORD *) HeapAlloc(GetProcessHeap(), 0, imgsize); 480 //bugbug (too much) 481 //bugbug 482 if(CPUFeatures & CPUID_MMX) { 483 RGB555to565MMX(newbits, (WORD *)bits+offset, imgsize/sizeof(WORD)); 484 } 485 else 486 RGB555to565(newbits, (WORD *)bits+offset, imgsize/sizeof(WORD)); 477 478 //we still convert too much 479 pRGB555to565(newbits, (WORD *)bits+offset, imgsize/sizeof(WORD)); 487 480 bits = newbits; 481 482 ySrc = 0; 488 483 } 489 484 //SvL: Ignore BI_BITFIELDS type (StretchDIBits fails otherwise)
Note:
See TracChangeset
for help on using the changeset viewer.