Changeset 8821 for trunk/src/ddraw/OS2SURFACE.CPP
- Timestamp:
- Jul 2, 2002, 11:55:13 AM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ddraw/OS2SURFACE.CPP
r8818 r8821 1 /* $Id: OS2SURFACE.CPP,v 1.4 4 2002-07-01 19:15:24sandervl Exp $ */1 /* $Id: OS2SURFACE.CPP,v 1.45 2002-07-02 09:55:12 sandervl Exp $ */ 2 2 3 3 /* … … 4967 4967 GetDIBits(hdc, me->hbmImage, 0, me->DDSurfaceDesc.dwHeight, 4968 4968 me->DDSurfaceDesc.lpSurface,(PBITMAPINFO)&BitmapInfo,DIB_RGB_COLORS); 4969 4970 //GetDIBits returns data in RGB555 format; convert if surface is in RGB565 format4971 if(me->DDSurfaceDesc.ddpfPixelFormat.dwGBitMask == 0x7E0) {4972 int imgsize = BitmapInfo.bmiHead.biWidth*BitmapInfo.bmiHead.biHeight*2;4973 4974 if(CPUFeatures & CPUID_MMX) {4975 DDrawRGB555to565MMX((char *)me->DDSurfaceDesc.lpSurface, (char *)me->DDSurfaceDesc.lpSurface, imgsize/sizeof(WORD));4976 }4977 else DDrawRGB555to565((char *)me->DDSurfaceDesc.lpSurface, (char *)me->DDSurfaceDesc.lpSurface, imgsize/sizeof(WORD));4978 }4979 4969 break; 4980 4970
Note:
See TracChangeset
for help on using the changeset viewer.