From 4f22db868898fea9a1f14a91cb6073a3fd186f14 Mon Sep 17 00:00:00 2001 From: Dany LE Date: Sun, 19 Dec 2021 22:52:35 +0100 Subject: [PATCH] Reset only the unique instance in SDK environment --- Diya/DiyaBoot.class.st | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Diya/DiyaBoot.class.st b/Diya/DiyaBoot.class.st index ff5e71c..025d7ef 100644 --- a/Diya/DiyaBoot.class.st +++ b/Diya/DiyaBoot.class.st @@ -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. ]