- Timestamp:
- Sep 12, 2006, 11:25:42 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel/qpixmap_pm.cpp
r108 r124 379 379 d = 32; // > 8 ==> 32 380 380 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). 388 386 } 389 387 … … 638 636 } 639 637 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). 647 643 648 644 int ncols = image.numColors(); … … 846 842 } 847 843 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). 855 849 856 850 // allocate header + ncols palette entries
Note:
See TracChangeset
for help on using the changeset viewer.