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 "Document/EditorSession.h"
|
||||
#include "Document/DocumentLimits.h"
|
||||
#include "Document/PixelAdjust.h"
|
||||
#include "IO/ImageExporter.h"
|
||||
#include "Logging.h"
|
||||
@@ -167,7 +168,7 @@ void EditorSession::finishShape()
|
||||
return;
|
||||
// Swift's Int(): each side truncated before multiplying.
|
||||
if (std::trunc(rect.width()) * std::trunc(rect.height()) > double(maxShapePixels)) {
|
||||
setBrushError(QStringLiteral("That shape is too large. A shape can cover up to 100 megapixels."));
|
||||
setBrushError(QStringLiteral("That shape is too large. A shape can cover up to %1 megapixels.").arg(DocumentLimits::maxSurfaceMegapixels()));
|
||||
return;
|
||||
}
|
||||
// The ends as fractions of the box, for resizing.
|
||||
|
||||
Reference in new issue
Block a user