Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions starling/src/starling/display/DisplayObject.as
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// =================================================================================================
// =================================================================================================
//
// Starling Framework
// Copyright Gamua GmbH. All Rights Reserved.
Expand Down Expand Up @@ -457,12 +457,12 @@ package starling.display
painter.backBufferHeight * backBufferScale);

while (positionInBitmap.y < out.height)
{
{
stepX = projectionX;
positionInBitmap.x = 0;

while (positionInBitmap.x < out.width)
{
{
painter.clear(color, alpha);
painter.state.setProjectionMatrix(stepX, stepY, stepWidth, stepHeight,
stageWidth, stageHeight, stage.cameraPosition);
Expand All @@ -474,15 +474,16 @@ package starling.display

if (_mask) painter.eraseMask(mask, this);

painter.finishMeshBatch();
execute(painter.context.drawToBitmapData, out, boundsInBuffer, positionInBitmap);

painter.finishMeshBatch();
var bmd:BitmapData = new BitmapData(stepWidth, stepHeight, true, 0x00ffffff);
painter.context.drawToBitmapData(bmd, boundsInBuffer);
out.copyPixels(bmd, boundsInBuffer,positionInBitmap);

stepX += stepWidth;
positionInBitmap.x += stepWidth * totalScaleX;
}

stepY += stepHeight;
positionInBitmap.y += stepHeight * totalScaleY;
positionInBitmap.y += stepHeight * totalScaleY;
}

painter.popState();
Expand Down