1
0
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:
Dany LE 2021-12-19 20:12:36 +01:00
parent ad045dcc80
commit ae9c884997

View File

@ -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.
] ]