Skip to content

Commit

Permalink
Fixing image format name
Browse files Browse the repository at this point in the history
  • Loading branch information
tesonep committed Nov 22, 2022
1 parent cabea2c commit 3f7b3ab
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@ PharoVMMaker >> generate: interpreterClass memoryManager: memoryManager compiler

| platformDirectory vmmaker imageReaderClassName imageWriterClassName |

imageFormatName = 'ComposedImage'
(#(SpurFormat ComposedFormat) includes: imageFormatName)
ifFalse:[ self error: 'Invalid Image Format'].

imageFormatName = 'ComposedFormat'
ifTrue: [imageReaderClassName := ComposedImageReader name.
imageWriterClassName := ComposedImageWriter name]
ifFalse: [imageReaderClassName := SpurImageReader name.
Expand Down

0 comments on commit 3f7b3ab

Please sign in to comment.