src/gui/embedded/qwscursor_qws.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
   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;