src/plugins/gfxdrivers/directfb/qdirectfbpaintdevice.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
   174         return (dotsPerMeterY() * 254) / 10000; // 0.0254 meters-per-inch
   174         return (dotsPerMeterY() * 254) / 10000; // 0.0254 meters-per-inch
   175     case QPaintDevice::PdmDepth:
   175     case QPaintDevice::PdmDepth:
   176         return QDirectFBScreen::depth(imageFormat);
   176         return QDirectFBScreen::depth(imageFormat);
   177     case QPaintDevice::PdmNumColors: {
   177     case QPaintDevice::PdmNumColors: {
   178         if (!lockedImage.isNull())
   178         if (!lockedImage.isNull())
   179             return lockedImage.numColors();
   179             return lockedImage.colorCount();
   180 
   180 
   181         DFBResult result;
   181         DFBResult result;
   182         IDirectFBPalette *palette = 0;
   182         IDirectFBPalette *palette = 0;
   183         unsigned int numColors = 0;
   183         unsigned int numColors = 0;
   184 
   184