icecat: add release icecat-140.10.1-1gnu1 for ecne
This commit is contained in:
parent
a5f93cb214
commit
ff85d7c623
1256 changed files with 63469 additions and 24141 deletions
|
|
@ -154,10 +154,14 @@ void ScreenshotGrabberImpl::GrabScreenshot(Window& aWindow,
|
|||
return;
|
||||
}
|
||||
|
||||
if (aWindowSize.IsEmpty() || mBufferSize.IsEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Size windowSize(aWindowSize);
|
||||
float scale = std::min(mBufferSize.width / windowSize.width,
|
||||
mBufferSize.height / windowSize.height);
|
||||
IntSize scaledSize = IntSize::Round(windowSize * scale);
|
||||
IntSize scaledSize = Max(IntSize::Round(windowSize * scale), IntSize(1, 1));
|
||||
RefPtr<RenderSource> scaledTarget = ScaleDownWindowRenderSourceToSize(
|
||||
aWindow, scaledSize, windowRenderSource, 0);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue