Ignore:
Timestamp:
Sep 12, 2006, 11:25:42 PM (19 years ago)
Author:
dmik
Message:

Kernel: Removed the annoying "QPixmap::xForm(): video driver doesn't seem to support the 32-bpp color depth!" warning (SNAP drivers don't report 32-bpp as the supported depth when a lower color depth is specified in Screen settings, but seem to work well when converting to/from 32-bpp).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel/qpixmap_pm.cpp

    r108 r124  
    379379        d = 32;                                 //   > 8  ==> 32
    380380        ncols = 0;
    381 #if defined QT_CHECK_RANGE
    382     if ( trueColorDepth() != 32 )
    383         qWarning( "QPixmap::convertToImage(): video driver doesn't seem to "
    384                   "support the 32-bpp color depth!" );
    385         // don't return since we still hope the driver can at least convert
    386         // from/to 32-bpp bitmaps
    387 #endif           
     381        // Note: even if trueColorDepth() != 32 here, we don't return hoping
     382        // that the video driver can at least convert from/to 32-bpp bitmaps
     383        // (which is the case for SNAP that doesn't report 32-bpp as the
     384        // supported depth when a lower color depth is specified in Screen
     385        // settings, but works well when converting).
    388386    }
    389387
     
    638636    }
    639637
    640 #if defined QT_CHECK_RANGE     
    641     if ( d == 32 && trueColorDepth() != 32 )
    642         qWarning( "QPixmap::convertFromImage(): video driver doesn't seem to "
    643                   "support the 32-bpp color depth!" );
    644         // don't return since we still hope the driver can at least convert
    645         // from/to 32-bpp bitmaps
    646 #endif           
     638    // Note: even if trueColorDepth() != 32 here, we don't return hoping
     639    // that the video driver can at least convert from/to 32-bpp bitmaps
     640    // (which is the case for SNAP that doesn't report 32-bpp as the
     641    // supported depth when a lower color depth is specified in Screen
     642    // settings, but works well when converting).
    647643
    648644    int   ncols    = image.numColors();
     
    846842    }
    847843
    848 #if defined QT_CHECK_RANGE     
    849     if ( bpp == 32 && trueColorDepth() != 32 )
    850         qWarning( "QPixmap::xForm(): video driver doesn't seem to "
    851                   "support the 32-bpp color depth!" );
    852         // don't return since we still hope the driver can at least convert
    853         // from/to 32-bpp bitmaps
    854 #endif           
     844    // Note: even if trueColorDepth() != 32 here, we don't return hoping
     845    // that the video driver can at least convert from/to 32-bpp bitmaps
     846    // (which is the case for SNAP that doesn't report 32-bpp as the
     847    // supported depth when a lower color depth is specified in Screen
     848    // settings, but works well when converting).
    855849   
    856850    // allocate header + ncols palette entries
Note: See TracChangeset for help on using the changeset viewer.