Ignore:
Timestamp:
May 10, 2001, 7:03:18 PM (24 years ago)
Author:
sandervl
Message:

bugfixes

File:
1 edited

Legend:

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

    r5399 r5677  
    1 /* $Id: dibsect.cpp,v 1.49 2001-03-29 18:52:53 sandervl Exp $ */
     1/* $Id: dibsect.cpp,v 1.50 2001-05-10 17:03:18 sandervl Exp $ */
    22
    33/*
     
    559559  else  bitmapBits = bmpBits;
    560560
     561  switch(Rop) {
     562      case 0xcc0020: /* SRCCOPY */
     563          Rop = ROP_SRCCOPY;
     564          break;
     565      case 0xee0086: /* SRCPAINT */
     566          Rop = ROP_SRCPAINT;
     567          break;
     568      case 0x8800c6: /* SRCAND */
     569          Rop = ROP_SRCAND;
     570          break;
     571      case 0x660046: /* SRCINVERT */
     572          Rop = ROP_SRCINVERT;
     573          break;
     574      case 0x440328: /* SRCERASE */
     575          Rop = ROP_SRCERASE;
     576          break;
     577      case 0x330008: /* NOTSRCCOPY */
     578          Rop = ROP_NOTSRCCOPY;
     579          break;
     580      case 0x1100a6: /* NOTSRCERASE */
     581          Rop = ROP_NOTSRCERASE;
     582          break;
     583      case 0xc000ca: /* MERGECOPY */
     584          Rop = ROP_MERGECOPY;
     585          break;
     586      case 0xbb0226: /* MERGEPAINT */
     587          Rop = ROP_MERGEPAINT;
     588          break;
     589      case 0xf00021: /* PATCOPY */
     590          Rop = ROP_PATCOPY;
     591          break;
     592      case 0xfb0a09: /* PATPAINT */
     593          Rop = ROP_PATPAINT;
     594          break;
     595      case 0x5a0049: /* PATINVERT */
     596          Rop = ROP_PATINVERT;
     597          break;
     598      case 0x550009: /* DSTINVERT */
     599          Rop = ROP_DSTINVERT;
     600          break;
     601      case 0x000042: /* BLACKNESS */
     602          Rop = ROP_ZERO;
     603          break;
     604      case 0xff0062: /* WHITENESS */
     605          Rop = ROP_ONE;
     606          break;
     607      default:
     608          Rop = ROP_SRCCOPY;
     609          break;
     610  }
     611
    561612  //SvL: Optimize this.. (don't convert entire bitmap if only a part will be blitted to the dc)
    562613  if(dibinfo.dsBitfields[1] == 0x3E0) {//RGB 555?
     
    585636
    586637
    587         rc = GpiDrawBits(hps, bmpBitsDblBuffer, pOS2bmp, 4, &point[0], ROP_SRCCOPY, os2mode);
     638        rc = GpiDrawBits(hps, bmpBitsDblBuffer, pOS2bmp, 4, &point[0], Rop, os2mode);
    588639  }
    589640  else {
    590         rc = GpiDrawBits(hps, bitmapBits, pOS2bmp, 4, &point[0], ROP_SRCCOPY, os2mode);
     641        rc = GpiDrawBits(hps, bitmapBits, pOS2bmp, 4, &point[0], Rop, os2mode);
    591642  }
    592643  if(rc == GPI_OK) {
Note: See TracChangeset for help on using the changeset viewer.