mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
st/nine: Force hw cursor for Windowed mode
According to the spec, Windowed mode must have hw cursor Signed-off-by: Axel Davy <axel.davy@ens.fr> Reviewed-by: David Heidelberg <david@ixit.cz>
This commit is contained in:
parent
1b20eaff67
commit
78b304e2f9
1 changed files with 9 additions and 3 deletions
|
|
@ -611,9 +611,15 @@ NineDevice9_SetCursorProperties( struct NineDevice9 *This,
|
|||
|
||||
user_assert(pCursorBitmap, D3DERR_INVALIDCALL);
|
||||
|
||||
This->cursor.w = MIN2(surf->desc.Width, This->cursor.image->width0);
|
||||
This->cursor.h = MIN2(surf->desc.Height, This->cursor.image->height0);
|
||||
hw_cursor = This->cursor.w == 32 && This->cursor.h == 32;
|
||||
if (This->swapchains[0]->params.Windowed) {
|
||||
This->cursor.w = MIN2(surf->desc.Width, 32);
|
||||
This->cursor.h = MIN2(surf->desc.Height, 32);
|
||||
hw_cursor = 1; /* always use hw cursor for windowed mode */
|
||||
} else {
|
||||
This->cursor.w = MIN2(surf->desc.Width, This->cursor.image->width0);
|
||||
This->cursor.h = MIN2(surf->desc.Height, This->cursor.image->height0);
|
||||
hw_cursor = This->cursor.w == 32 && This->cursor.h == 32;
|
||||
}
|
||||
|
||||
u_box_origin_2d(This->cursor.w, This->cursor.h, &box);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue