mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 389459: lines appear when scrolling page while image loading at >144 dpi. r=vlad, a19=dbaron
This commit is contained in:
parent
37164c6b8c
commit
90fb49c39b
@ -377,9 +377,8 @@ nsThebesImage::Draw(nsIRenderingContext &aContext,
|
||||
destRect.pos.x += (srcRect.pos.x - aSourceRect.pos.x)*xscale;
|
||||
destRect.pos.y += (srcRect.pos.y - aSourceRect.pos.y)*yscale;
|
||||
|
||||
// use '+ 1 - *scale' to get rid of rounding errors
|
||||
destRect.size.width = (srcRect.size.width)*xscale + 1 - xscale;
|
||||
destRect.size.height = (srcRect.size.height)*yscale + 1 - yscale;
|
||||
destRect.size.width = srcRect.size.width * xscale;
|
||||
destRect.size.height = srcRect.size.height * yscale;
|
||||
}
|
||||
|
||||
// Reject over-wide or over-tall images.
|
||||
|
Loading…
Reference in New Issue
Block a user