Mercurial > octave-dspies
comparison src/DLD-FUNCTIONS/__magick_read__.cc @ 11036:169f59f626d3
Add check for QuantumDepth at initialization of *Magick and an associated warning
author | John Swensen <jpswensen@gmail.com> |
---|---|
date | Tue, 28 Sep 2010 17:24:49 -0400 |
parents | 8a6b7947f618 |
children | a2c3c43af79e |
comparison
equal
deleted
inserted
replaced
11035:8a6b7947f618 | 11036:169f59f626d3 |
---|---|
388 | 388 |
389 Magick::InitializeMagick (program_name.c_str ()); | 389 Magick::InitializeMagick (program_name.c_str ()); |
390 | 390 |
391 // Restore locale from before GraphicsMagick initialisation | 391 // Restore locale from before GraphicsMagick initialisation |
392 setlocale (LC_ALL, locale.c_str ()); | 392 setlocale (LC_ALL, locale.c_str ()); |
393 | |
394 if (QuantumDepth < 32) | |
395 warning ("your version of %s limits images to %d bits per pixel", | |
396 MagickPackageName, QuantumDepth); | |
393 | 397 |
394 initialized = true; | 398 initialized = true; |
395 } | 399 } |
396 #endif | 400 #endif |
397 } | 401 } |