mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
A few fixes to the compositor for WebRender
This commit is contained in:
parent
2f9c9cefdb
commit
ae42048540
2 changed files with 5 additions and 4 deletions
|
@ -197,10 +197,10 @@ pub struct EmbedderCoordinates {
|
|||
}
|
||||
|
||||
impl EmbedderCoordinates {
|
||||
pub fn get_flipped_viewport(&self) -> FramebufferIntRect {
|
||||
pub fn get_flipped_viewport(&self) -> DeviceIntRect {
|
||||
let fb_height = self.framebuffer.height;
|
||||
let mut view = self.viewport.clone();
|
||||
view.origin.y = fb_height - view.origin.y - view.size.height;
|
||||
FramebufferIntRect::from_untyped(&view.to_untyped())
|
||||
DeviceIntRect::from_untyped(&view.to_untyped())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue