no message

main
이범준 7 months ago
parent 93537b330a
commit 2395f3bcba

@ -1580,15 +1580,13 @@ function PaintWeb (win, doc) {
if (layerContext.getImageData) {
// TODO: handle "out of memory" errors.
try {
layerData = layerContext.getImageData(cropX, cropY, dataWidth,
dataHeight);
layerData = layerContext.getImageData(cropX, cropY, dataWidth, dataHeight);
} catch (err) { }
}
if (bufferContext.getImageData) {
try {
bufferData = bufferContext.getImageData(cropX, cropY, dataWidth,
dataHeight);
bufferData = bufferContext.getImageData(cropX, cropY, dataWidth, dataHeight);
} catch (err) { }
}
@ -1620,8 +1618,7 @@ function PaintWeb (win, doc) {
bufferState = layerState = layerData = bufferData = null;
this.events.dispatch(new appEvent.imageSizeChange(cropWidth, cropHeight));
this.events.dispatch(new appEvent.canvasSizeChange(scaledWidth,
scaledHeight, image.canvasScale));
this.events.dispatch(new appEvent.canvasSizeChange(scaledWidth, scaledHeight, image.canvasScale));
//--------------------------------------------------------------------
// FIXME: 변경된 부분 : 변경된 내용이 없으면 skip
@ -1770,8 +1767,7 @@ function PaintWeb (win, doc) {
// TODO: in case of "out of memory" errors... I should show up some error.
try {
history.states.push(layerContext.getImageData(0, 0, this.image.width,
this.image.height));
history.states.push(layerContext.getImageData(0, 0, this.image.width, this.image.height));
} catch (err) {
return false;
}
@ -1780,8 +1776,7 @@ function PaintWeb (win, doc) {
if ('historyLimit' in this.config &&
history.states.length > this.config.historyLimit) {
history.states.splice(0, history.states.length
- this.config.historyLimit);
history.states.splice(0, history.states.length - this.config.historyLimit);
}
history.pos = history.states.length;

Loading…
Cancel
Save