"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libs/libkis/Krita.cpp" between
krita-5.1.3.tar.xz and krita-5.1.4.tar.xz

About: Krita is a painting program offering art tools for everyone (concept art, texture and matte painters, illustrations and comics).

Krita.cpp  (krita-5.1.3.tar.xz):Krita.cpp  (krita-5.1.4.tar.xz)
skipping to change at line 334 skipping to change at line 334
Document* Krita::createDocument(int width, int height, const QString &name, cons t QString &colorModel, const QString &colorDepth, const QString &profile, double resolution) Document* Krita::createDocument(int width, int height, const QString &name, cons t QString &colorModel, const QString &colorDepth, const QString &profile, double resolution)
{ {
KisDocument *document = KisPart::instance()->createDocument(); KisDocument *document = KisPart::instance()->createDocument();
document->setObjectName(name); document->setObjectName(name);
KisPart::instance()->addDocument(document, false); KisPart::instance()->addDocument(document, false);
const KoColorSpace *cs = KoColorSpaceRegistry::instance()->colorSpace(colorM odel, colorDepth, profile); const KoColorSpace *cs = KoColorSpaceRegistry::instance()->colorSpace(colorM odel, colorDepth, profile);
Q_ASSERT(cs); Q_ASSERT(cs);
QColor qc(Qt::white); QColor qc(Qt::white);
qc.setAlpha(0);
KoColor bgColor(qc, cs); KoColor bgColor(qc, cs);
if (!document->newImage(name, width, height, cs, bgColor, KisConfig::RASTER_ LAYER, 1, "", double(resolution / 72) )) { if (!document->newImage(name, width, height, cs, bgColor, KisConfig::RASTER_ LAYER, 1, "", double(resolution / 72) )) {
return 0; return 0;
} }
Q_ASSERT(document->image()); Q_ASSERT(document->image());
Document *doc = new Document(document, true); Document *doc = new Document(document, true);
return doc; return doc;
 End of changes. 1 change blocks. 
1 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)