mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 757365 - Don't use uint8 in DocumentRenderer{Parent,Child}.cpp; r=bjacob
This commit is contained in:
parent
1d02a1ece1
commit
beea34d1fc
@ -68,7 +68,7 @@ DocumentRendererChild::RenderDocument(nsIDOMWindow *window,
|
||||
data.SetLength(renderSize.width * renderSize.height * 4);
|
||||
|
||||
nsRefPtr<gfxImageSurface> surf =
|
||||
new gfxImageSurface(reinterpret_cast<uint8*>(data.BeginWriting()),
|
||||
new gfxImageSurface(reinterpret_cast<uint8_t*>(data.BeginWriting()),
|
||||
gfxIntSize(renderSize.width, renderSize.height),
|
||||
4 * renderSize.width,
|
||||
gfxASurface::ImageFormatARGB32);
|
||||
|
@ -28,7 +28,7 @@ void DocumentRendererParent::DrawToCanvas(const nsIntSize& aSize,
|
||||
return;
|
||||
|
||||
nsRefPtr<gfxImageSurface> surf =
|
||||
new gfxImageSurface(reinterpret_cast<uint8*>(const_cast<nsCString&>(aData).BeginWriting()),
|
||||
new gfxImageSurface(reinterpret_cast<uint8_t*>(const_cast<nsCString&>(aData).BeginWriting()),
|
||||
gfxIntSize(aSize.width, aSize.height),
|
||||
aSize.width * 4,
|
||||
gfxASurface::ImageFormatARGB32);
|
||||
|
Loading…
Reference in New Issue
Block a user