Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 3904 → Rev 3905

/branches/Version13x/Scribus/scribus/scimage.h
204,5 → 204,6
uint icclen;
std::valarray<int> curveTable;
QValueList<unsigned int> colorTable;
int random_table[4096];
};
#endif
/branches/Version13x/Scribus/scribus/about.cpp
46,7 → 46,7
tabLayout1->addWidget( pixmapLabel1 );
buildID = new QLabel( tab, "BB" );
buildID->setAlignment(Qt::AlignCenter);
QString BUILD_DAY = "16";
QString BUILD_DAY = "19";
QString BUILD_MONTH = tr("November");
QString BUILD_YEAR = "2005";
QString BUILD_TIME = "";
/branches/Version13x/Scribus/scribus/scimage.cpp
1679,6 → 1679,23
}
else
{
QString layBlend2 = layerInfo[layer].blend;
if ((imgInfo.isRequest) && (imgInfo.RequestProps.contains(layer)))
layBlend2 = imgInfo.RequestProps[layer].blend;
if ((layBlend2 == "diss") && (header.color_mode != CM_CMYK))
{
for (int l = 0; l < tmpImg.height(); l++)
{
srand(random_table[ l % 4096]);
for (int k = 0; k < tmpImg.width(); k++)
{
int rand_val = rand() & 0xff;
QRgb pixel = tmpImg.pixel(k, l);
if (rand_val > 128)
tmpImg.setPixel(k, l, qRgba(qRed(pixel), qGreen(pixel), qBlue(pixel), 0));
}
}
}
for (int i = static_cast<int>(startSrcY); i < layerInfo[layer].height; i++)
{
unsigned int *dst = (unsigned int *)scanLine(QMIN(static_cast<int>(startDstY), height()-1));
2558,6 → 2575,19
uint startRessource;
uint layerDataLen;
uint startLayers;
 
srand(314159265);
for (int i = 0; i < 4096; i++)
random_table[i] = rand();
for (int i = 0; i < 4096; i++)
{
int tmp;
int swap = i + rand() % (4096 - i);
tmp = random_table[i];
random_table[i] = random_table[swap];
random_table[swap] = tmp;
}
 
// Skip mode data. FIX: this is incorrect, it's the Colormap Data for indexed Images
s >> tmp;
cdataStart = s.device()->at();