Ignore:
Timestamp:
Jul 16, 2003, 12:46:18 PM (22 years ago)
Author:
sandervl
Message:

DT: Fix for partial blits in StretchDIBits; optimized rgb conversion calls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gdi32/dibitmap.cpp

    r10088 r10167  
    1 /* $Id: dibitmap.cpp,v 1.40 2003-05-14 11:39:59 sandervl Exp $ */
     1/* $Id: dibitmap.cpp,v 1.41 2003-07-16 10:46:17 sandervl Exp $ */
    22
    33/*
     
    112112
    113113        newbits = (WORD *)malloc(imgsize);
    114         if(CPUFeatures & CPUID_MMX) {
    115              RGB555to565MMX(newbits, (WORD *)lpbInit, imgsize/sizeof(WORD));
    116         }
    117         else RGB555to565(newbits, (WORD *)lpbInit, imgsize/sizeof(WORD));
     114        pRGB555to565(newbits, (WORD *)lpbInit, imgsize/sizeof(WORD));
     115
    118116        lpbInit = newbits;
    119117    }
     
    496494                                     lpbi->bmiHeader.biWidth, nrlines);
    497495
    498         if(CPUFeatures & CPUID_MMX) {
    499              RGB565to555MMX((WORD *)lpvBits, (WORD *)lpvBits, imgsize/sizeof(WORD));
    500         }
    501         else RGB565to555((WORD *)lpvBits, (WORD *)lpvBits, imgsize/sizeof(WORD));
     496        pRGB565to555((WORD *)lpvBits, (WORD *)lpvBits, imgsize/sizeof(WORD));
    502497    }
    503498
     
    515510void WIN32API ConvertRGB555to565(LPVOID dest, LPVOID src, UINT imgsize)
    516511{
    517     if(CPUFeatures & CPUID_MMX) {
    518          RGB555to565MMX((WORD *)dest, (WORD *)src, imgsize/sizeof(WORD));
    519     }
    520     else RGB555to565((WORD *)dest, (WORD *)src, imgsize/sizeof(WORD));
     512    pRGB555to565((WORD *)dest, (WORD *)src, imgsize/sizeof(WORD));
    521513}
    522514//******************************************************************************
     
    592584
    593585        newbits = (WORD *)malloc(imgsize);
    594         if(CPUFeatures & CPUID_MMX) {
    595              RGB555to565MMX(newbits, (WORD *)pBits, imgsize/sizeof(WORD));
    596         }
    597         else RGB555to565(newbits, (WORD *)pBits, imgsize/sizeof(WORD));
     586        pRGB555to565(newbits, (WORD *)pBits, imgsize/sizeof(WORD));
    598587        pBits = newbits;
    599588    }
Note: See TracChangeset for help on using the changeset viewer.