Bug 551089 fix canvas warnings

r=vlad

--HG--
extra : rebase_source : 1f98a9cce20d0486de80a577aa0724a049077098
This commit is contained in:
timeless@mozdev.org 2010-03-12 07:50:12 +01:00
parent 638fe351a8
commit cc51b4b681

View File

@ -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++;