The document's own pixel budget, marching ants at screen resolution (12.11a)
This commit is contained in:
1 parent
ffba1753c6
commit
8a9c56ee1f
75 files changed
+759
-189
No files matched your search
@@ -1,4 +1,5 @@
|
||||
#include "Rendering/LayerEffectsKernel.h"
|
||||
#include "Document/DocumentLimits.h"
|
||||
#include "Rendering/PoolMap.h"
|
||||
#include "Document/BrushStroke.h"
|
||||
#include "IO/ImageExporter.h"
|
||||
@@ -156,7 +157,7 @@ QImage LayerEffectsKernel::render(const QImage &pixels, const LayerEffects &effe
|
||||
const int width = pixels.width(), height = pixels.height();
|
||||
const qint64 count = qint64(width) * height;
|
||||
// Past Metal's 80 million Swift draws on its CPU.
|
||||
if (count <= 0 || count > 100'000'000)
|
||||
if (count <= 0 || count > DocumentLimits::maxSurfacePixels)
|
||||
throw ExportError(ExportError::Kind::tooLarge);
|
||||
const QImage source = pixels.convertToFormat(QImage::Format_RGBA8888_Premultiplied);
|
||||
if (source.isNull())
|
||||
|
||||
Reference in new issue
Block a user