equal
deleted
inserted
replaced
532 cursor = QImage(width,height, QImage::Format_Indexed8); |
532 cursor = QImage(width,height, QImage::Format_Indexed8); |
533 |
533 |
534 if (!width || !height || !data || !mask || cursor.isNull()) |
534 if (!width || !height || !data || !mask || cursor.isNull()) |
535 return; |
535 return; |
536 |
536 |
537 cursor.setNumColors(3); |
537 cursor.setColorCount(3); |
538 cursor.setColor(0, 0xff000000); |
538 cursor.setColor(0, 0xff000000); |
539 cursor.setColor(1, 0xffffffff); |
539 cursor.setColor(1, 0xffffffff); |
540 cursor.setColor(2, 0x00000000); |
540 cursor.setColor(2, 0x00000000); |
541 |
541 |
542 int bytesPerLine = (width + 7) / 8; |
542 int bytesPerLine = (width + 7) / 8; |