mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
ui/egl-helpers: Augment parameter list of egl_texture_blend() to convey scales of viewport
This would help gtk-egl display showing scaled DMABuf cursor images when gtk window was zoomed. A default scale of (1.0, 1.0) was presumed for call sites where no scaling is needed. Signed-off-by: Chen Zhang <tgfbeta@me.com> Message-id: 23B229B3-3095-4DFB-8369-866784808D30@me.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
5e24600a7c
commit
051a0cde7b
5 changed files with 11 additions and 8 deletions
|
@ -142,7 +142,8 @@ static void egl_scanout_flush(DisplayChangeListener *dcl,
|
|||
egl_texture_blit(edpy->gls, &edpy->blit_fb, &edpy->guest_fb,
|
||||
!edpy->y_0_top);
|
||||
egl_texture_blend(edpy->gls, &edpy->blit_fb, &edpy->cursor_fb,
|
||||
!edpy->y_0_top, edpy->pos_x, edpy->pos_y);
|
||||
!edpy->y_0_top, edpy->pos_x, edpy->pos_y,
|
||||
1.0, 1.0);
|
||||
} else {
|
||||
/* no cursor -> use simple framebuffer blit */
|
||||
egl_fb_blit(&edpy->blit_fb, &edpy->guest_fb, edpy->y_0_top);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue