mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
st/nine: Init cursor position at device creation
This is only useful for software cursor, but at least now we won't start it at (0, 0). Signed-off-by: Axel Davy <davyaxel0@gmail.com>
This commit is contained in:
parent
62ea55ec8b
commit
112c770597
1 changed files with 5 additions and 2 deletions
|
|
@ -333,8 +333,11 @@ NineDevice9_ctor( struct NineDevice9 *This,
|
|||
This->cursor.hotspot.y = -1;
|
||||
This->cursor.w = This->cursor.h = 0;
|
||||
This->cursor.visible = FALSE;
|
||||
This->cursor.pos.x = 0;
|
||||
This->cursor.pos.y = 0;
|
||||
if (ID3DPresent_GetCursorPos(This->swapchains[0]->present, &This->cursor.pos) != S_OK) {
|
||||
This->cursor.pos.x = 0;
|
||||
This->cursor.pos.y = 0;
|
||||
}
|
||||
|
||||
{
|
||||
struct pipe_resource tmpl;
|
||||
memset(&tmpl, 0, sizeof(tmpl));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue