mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 06:21:45 +03:00
CanvasRenderingContext2D: More verbose input validation error message
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
parent
a55a899e74
commit
aec946b4ff
@ -212,7 +212,8 @@ method CanvasRenderingContext2D::putImageData()
|
||||
clipx < 0 || clipy < 0 || /* Input in range */
|
||||
(clipx + clipw) > idpriv->width || /* Input in range */
|
||||
(clipy + cliph) > idpriv->height) { /* Input in range */
|
||||
return duk_error(ctx, DUK_ERR_RANGE_ERROR, "invalid inputs");
|
||||
return duk_error(ctx, DUK_ERR_RANGE_ERROR, "invalid inputs: (%d,%d) (%d,%d) (%d,%d) (Me: %d,%d) (Img: %d,%d)",
|
||||
x,y,clipx,clipy,clipw,cliph, priv->width, priv->height, idpriv->width, idpriv->height);
|
||||
}
|
||||
|
||||
bitmap_base = guit->bitmap->get_buffer(priv->bitmap);
|
||||
|
Loading…
Reference in New Issue
Block a user