mirror of
https://github.com/lxsang/Diya-API.git
synced 2024-12-27 03:48: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 }
|
||||
DiyaBoot >> createWindow [
|
||||
|handle|
|
||||
handle := SDL2 createWindow: 'Diya test'
|
||||
handle := SDL2 createWindow: 'Diya'
|
||||
x: 0
|
||||
y: 0
|
||||
width: display w
|
||||
@ -187,4 +187,6 @@ DiyaBoot >> startx [
|
||||
window destroy.
|
||||
SDL2 quit.
|
||||
Transcript show: 'System quit'; cr.
|
||||
self class reset.
|
||||
Smalltalk garbageCollect.
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user