mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
st/nine: Disallow non-argb8888 cursors
Only argb8888 cursors are allowed. Signed-off-by: Axel Davy <axel.davy@ens.fr> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
This commit is contained in:
parent
24ddadbba9
commit
6b12fe77ea
1 changed files with 1 additions and 0 deletions
|
|
@ -629,6 +629,7 @@ NineDevice9_SetCursorProperties( struct NineDevice9 *This,
|
|||
"pCursorBitmap=%p\n", This, XHotSpot, YHotSpot, pCursorBitmap);
|
||||
|
||||
user_assert(pCursorBitmap, D3DERR_INVALIDCALL);
|
||||
user_assert(surf->desc.Format == D3DFMT_A8R8G8B8, D3DERR_INVALIDCALL);
|
||||
|
||||
if (This->swapchains[0]->params.Windowed) {
|
||||
This->cursor.w = MIN2(surf->desc.Width, 32);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue