1
0
mirror of https://github.com/lxsang/Diya-API.git synced 2025-02-22 10:52:48 +01:00

Reset only the unique instance in SDK environment

This commit is contained in:
Dany LE 2021-12-19 22:52:35 +01:00
parent 29e4065fe1
commit 4f22db8688

View File

@ -128,10 +128,18 @@ DiyaBoot >> run: screenSize [
{ #category : #running } { #category : #running }
DiyaBoot >> run: screenSize app: application [ DiyaBoot >> run: screenSize app: application [
"
this function should be used only in
SDK environment, in real embeded system
it is always the #run command that is executed
automatically.
"
self init. self init.
display w: screenSize x. display w: screenSize x.
display h: screenSize y. display h: screenSize y.
self startx self startx.
self class reset.
Smalltalk garbageCollect.
] ]
{ #category : #events } { #category : #events }
@ -184,6 +192,4 @@ DiyaBoot >> startx [
renderer destroy. renderer destroy.
window destroy. window destroy.
SDL2 quit. SDL2 quit.
self class reset.
Smalltalk garbageCollect.
] ]