mirror of
https://github.com/lxsang/Diya-API.git
synced 2025-02-22 02:42:48 +01:00
Reset only the unique instance in SDK environment
This commit is contained in:
parent
29e4065fe1
commit
4f22db8688
@ -128,10 +128,18 @@ DiyaBoot >> run: screenSize [
|
||||
|
||||
{ #category : #running }
|
||||
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.
|
||||
display w: screenSize x.
|
||||
display h: screenSize y.
|
||||
self startx
|
||||
self startx.
|
||||
self class reset.
|
||||
Smalltalk garbageCollect.
|
||||
]
|
||||
|
||||
{ #category : #events }
|
||||
@ -184,6 +192,4 @@ DiyaBoot >> startx [
|
||||
renderer destroy.
|
||||
window destroy.
|
||||
SDL2 quit.
|
||||
self class reset.
|
||||
Smalltalk garbageCollect.
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user