[Cuis-dev] [FIX] Background Image Resizing if There None (or nil)

Gerald Klix cuis.01 at klix.ch
Mon Oct 26 09:44:50 PDT 2020


Hi all, hi Juan,

Changing the theme triggers resizing the background image, which fails 
if there is none.

The attached patch fixes this issue.


HTH and Best Regards,

Gerald
-------------- next part --------------
'From Cuis 5.0 [latest update: #4428] on 26 October 2020 at 4:06:09 pm'!

!WorldMorph methodsFor: 'misc' stamp: 'KLG 10/26/2020 16:05:08'!
buildMagnifiedBackgroundImage
	super buildMagnifiedBackgroundImage.
	backgroundImage ifNil: [ ^ self ].

	canvas ifNotNil: [ :c |
		(backgroundImage depth = 32 and: [ c form depth < 32 ]) ifTrue: [
			backgroundImage _ backgroundImage orderedDither32To16 ]]! !



More information about the Cuis-dev mailing list