Skip to content

Commit

Permalink
Fix displaying screenshot of Pharo
Browse files Browse the repository at this point in the history
  • Loading branch information
marschall committed Aug 23, 2022
1 parent f98a681 commit ea5c1ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
seasideMimeDocumentType: aMimeType
"Converts the receiver to a WAMimeDocument. The argument should ideally be an instance for WAMimeType. For various crappy reasons Strings and nil are also allowed."

| aStream writer |
aStream := GRPlatform current readWriteByteStream.
| writer content |
writer := self writerForMimeType: aMimeType seasideMimeType.
writer isNil ifTrue: [ self error: 'no writer for ', aMimeType greaseString, ' found' ].
writer putForm: (self asFormOfDepth: 32) onStream: aStream.
^ WAMimeDocument on: aStream contents mimeType: aMimeType
content := ByteArray streamContents: [ :stream |
writer putForm: (self asFormOfDepth: 32) onStream: stream ].
^ WAMimeDocument on: content mimeType: aMimeType
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
accessing
form
^ zoom
ifFalse: [ Display copy ]
ifFalse: [ UIManager default world imageForm ]
ifTrue: [ self topWindow imageForm ]

0 comments on commit ea5c1ad

Please sign in to comment.