@SPH
I might be misunderstanding what you are trying to do, but it sounds a bit like the problem I had trying to convert Puzzle of Mystralia to work in Linux and had 2 cursors showing? The original plus your custom one.
In that case, ExamineMouse() would hide the standard cursor, but then you lost the use of the mouse. Not ideal in a mouse based game!
ReleaseMouse(#True) restores both the usage of the mouse and the standard cursor too, so you're no better off.
I found some code on the forum that solved the problem perfectly, but trimmed it down to just the necessary to get the job done.
It was from a post by Shardik.
viewtopic.php?p=525626#p525626
This is what I ended up with.
Moulder.
Code: Select all
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Added code to hide cursor in Linux
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
#GDK_BLANK_CURSOR = -2
ImportC ""
gtk_widget_get_window(*Widget.GtkWidget)
EndImport
Cursor = gdk_cursor_new_(#GDK_BLANK_CURSOR)
gdk_window_set_cursor_(gtk_widget_get_window(WindowID(win)), Cursor)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;