mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 23:38:38 +09:00
Fix build bustage in cbfef7fcdb853916ff04015f6ee2d4b86f424a08
- imageDetails.format() needs a cast to SurfaceFormat - style nit: wrap long lines.
This commit is contained in:
parent
f3a19b8e9b
commit
c858b4cc75
1 changed files with 4 additions and 2 deletions
|
|
@ -7609,7 +7609,8 @@ nsContentUtils::CalculateBufferSizeForImage(const uint32_t& aStride,
|
|||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
*aMaxBufferSize = requiredBytes.value();
|
||||
*aUsedBufferSize = *aMaxBufferSize - aStride + (aImageSize.width * BytesPerPixel(aFormat));
|
||||
*aUsedBufferSize = *aMaxBufferSize - aStride +
|
||||
(aImageSize.width * BytesPerPixel(aFormat));
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
@ -7633,7 +7634,8 @@ nsContentUtils::DataTransferItemToImage(const IPCDataTransferItem& aItem,
|
|||
size_t maxBufLen = 0;
|
||||
nsresult rv = CalculateBufferSizeForImage(imageDetails.stride(),
|
||||
size,
|
||||
imageDetails.format(),
|
||||
static_cast<SurfaceFormat>(
|
||||
imageDetails.format()),
|
||||
&maxBufLen,
|
||||
&imageBufLen);
|
||||
if (NS_FAILED(rv)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue