mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-30 20:37:31 +09:00
backout bug1767365 part from rev 591552c5 as it cause crash in viewing https://www.ventusky.com/?w=off
This commit is contained in:
parent
f84bc6d605
commit
67177c6722
1 changed files with 2 additions and 2 deletions
|
|
@ -6075,8 +6075,8 @@ CanvasRenderingContext2D::PutImageData_explicit(int32_t aX, int32_t aY, uint32_t
|
||||||
return NS_ERROR_FAILURE;
|
return NS_ERROR_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t copyX = dirtyRect.x;
|
uint32_t copyX = dirtyRect.x - aX;
|
||||||
uint32_t copyY = dirtyRect.y;
|
uint32_t copyY = dirtyRect.y - aY;
|
||||||
//uint8_t *src = aArray->Data();
|
//uint8_t *src = aArray->Data();
|
||||||
uint8_t *dst = imgsurf->Data();
|
uint8_t *dst = imgsurf->Data();
|
||||||
uint8_t* srcLine = aArray->Data() + copyY * (aW * 4) + copyX * 4;
|
uint8_t* srcLine = aArray->Data() + copyY * (aW * 4) + copyX * 4;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue