mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 23:05:42 +00:00
Bug 551089 fix canvas warnings
r=vlad --HG-- extra : rebase_source : 1f98a9cce20d0486de80a577aa0724a049077098
This commit is contained in:
parent
638fe351a8
commit
cc51b4b681
@ -3475,8 +3475,8 @@ nsCanvasRenderingContext2D::GetImageData_explicit(PRInt32 x, PRInt32 y, PRUint32
|
||||
PRUint8 *src = aData;
|
||||
PRUint8 *dst = aData;
|
||||
|
||||
for (int j = 0; j < h; j++) {
|
||||
for (int i = 0; i < w; i++) {
|
||||
for (PRUint32 j = 0; j < h; j++) {
|
||||
for (PRUint32 i = 0; i < w; i++) {
|
||||
// XXX Is there some useful swizzle MMX we can use here?
|
||||
#ifdef IS_LITTLE_ENDIAN
|
||||
PRUint8 b = *src++;
|
||||
@ -3531,8 +3531,6 @@ NS_IMETHODIMP
|
||||
nsCanvasRenderingContext2D::PutImageData_explicit(PRInt32 x, PRInt32 y, PRUint32 w, PRUint32 h,
|
||||
unsigned char *aData, PRUint32 aDataLen)
|
||||
{
|
||||
nsresult rv;
|
||||
|
||||
if (!mValid)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
@ -3554,8 +3552,8 @@ nsCanvasRenderingContext2D::PutImageData_explicit(PRInt32 x, PRInt32 y, PRUint32
|
||||
PRUint8 *src = aData;
|
||||
PRUint8 *dst = imgsurf->Data();
|
||||
|
||||
for (int j = 0; j < h; j++) {
|
||||
for (int i = 0; i < w; i++) {
|
||||
for (PRUint32 j = 0; j < h; j++) {
|
||||
for (PRUint32 i = 0; i < w; i++) {
|
||||
PRUint8 r = *src++;
|
||||
PRUint8 g = *src++;
|
||||
PRUint8 b = *src++;
|
||||
|
Loading…
Reference in New Issue
Block a user