Honor scale factor when rendering
This commit is contained in:
parent
3f66dd678a
commit
a02e388ea2
2 changed files with 3 additions and 3 deletions
|
@ -816,7 +816,7 @@ impl Renderer {
|
|||
surface.image_buffer.width() as i32,
|
||||
surface.image_buffer.height() as i32,
|
||||
);
|
||||
let target_size = surface.bounds.size();
|
||||
let target_size = surface.bounds.size() * scale_factor;
|
||||
let pixel_format = if surface.image_buffer.pixel_format_type()
|
||||
== core_video::kCVPixelFormatType_32BGRA
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue