1
0
mirror of https://github.com/lxsang/Diya-API.git synced 2025-03-12 10:32:48 +01:00

remove dependecy on OSSDL2Driver

This commit is contained in:
Dany LE 2022-08-08 13:11:25 +02:00
parent 7a7665430d
commit 4a95c7d6df

View File

@ -6,6 +6,17 @@ SDL_Window >> destroy [
handle beNull handle beNull
] ]
{ #category : #'*Diya' }
SDL_Window class >> finalizeResourceData: aTuple [
| handle |
handle := aTuple first.
handle isNull ifTrue: [ ^ self ].
self destroyWindow: handle.
handle beNull
]
{ #category : #'*Diya' } { #category : #'*Diya' }
SDL_Window >> warpMouseX:x Y:y [ SDL_Window >> warpMouseX:x Y:y [
^self ffiCall: #(void SDL_WarpMouseInWindow(self,int x, int y)) ^self ffiCall: #(void SDL_WarpMouseInWindow(self,int x, int y))