mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
st/nine: Revert to sw cursor in case of failure to set hw cursor
Signed-off-by: Axel Davy <axel.davy@ens.fr> Reviewed-by: David Heidelberg <david@ixit.cz>
This commit is contained in:
parent
df6f1f77cc
commit
a30684712e
1 changed files with 2 additions and 2 deletions
|
|
@ -682,7 +682,7 @@ NineDevice9_SetCursorPosition( struct NineDevice9 *This,
|
|||
This->cursor.pos.y = Y;
|
||||
|
||||
if (!This->cursor.software)
|
||||
ID3DPresent_SetCursorPos(swap->present, &This->cursor.pos);
|
||||
This->cursor.software = ID3DPresent_SetCursorPos(swap->present, &This->cursor.pos) != D3D_OK;
|
||||
}
|
||||
|
||||
BOOL WINAPI
|
||||
|
|
@ -695,7 +695,7 @@ NineDevice9_ShowCursor( struct NineDevice9 *This,
|
|||
|
||||
This->cursor.visible = bShow && (This->cursor.hotspot.x != -1);
|
||||
if (!This->cursor.software)
|
||||
ID3DPresent_SetCursor(This->swapchains[0]->present, NULL, NULL, bShow);
|
||||
This->cursor.software = ID3DPresent_SetCursor(This->swapchains[0]->present, NULL, NULL, bShow) != D3D_OK;
|
||||
|
||||
return old;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue