mirror of
https://github.com/lxsang/Diya-API.git
synced 2024-12-28 12:28:21 +01:00
Add cleanup code when quitting
This commit is contained in:
parent
ad045dcc80
commit
ae9c884997
@ -78,7 +78,7 @@ DiyaBoot >> createRenderer [
|
|||||||
{ #category : #events }
|
{ #category : #events }
|
||||||
DiyaBoot >> createWindow [
|
DiyaBoot >> createWindow [
|
||||||
|handle|
|
|handle|
|
||||||
handle := SDL2 createWindow: 'Diya test'
|
handle := SDL2 createWindow: 'Diya'
|
||||||
x: 0
|
x: 0
|
||||||
y: 0
|
y: 0
|
||||||
width: display w
|
width: display w
|
||||||
@ -187,4 +187,6 @@ DiyaBoot >> startx [
|
|||||||
window destroy.
|
window destroy.
|
||||||
SDL2 quit.
|
SDL2 quit.
|
||||||
Transcript show: 'System quit'; cr.
|
Transcript show: 'System quit'; cr.
|
||||||
|
self class reset.
|
||||||
|
Smalltalk garbageCollect.
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user