Bug 798053 - Do a more accurate test for the return value of Scale(). r=gw280

--HG--
extra : rebase_source : c26a57f060f172e9b7864eef69fa782064b4fae5
This commit is contained in:
Joe Drew 2012-10-10 11:35:23 -04:00
parent 155b4147de
commit 0cddcc1188

View File

@ -44,7 +44,7 @@ bool Scale(uint8_t* srcData, int32_t srcWidth, int32_t srcHeight, int32_t srcStr
dstWidth, dstHeight,
dstData);
return result.readyToDraw();
return !result.isNull();
#else
return false;
#endif