Skip to content
This repository was archived by the owner on Apr 28, 2021. It is now read-only.

Commit 5be338c

Browse files
committed
discard alpha channel
1 parent af6d35a commit 5be338c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/screen.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,9 @@ function screenbuffer(window, channel=:color)
295295
channels = fieldnames(fb)[2:end]
296296
if channel in channels
297297
img = gpu_data(getfield(fb, channel))[abs_area(window)]
298+
if channel == :color
299+
img = RGB{N0f8}.(img)
300+
end
298301
return rotl90(img)
299302
end
300303
error("Channel $channel does not exist. Only these channels are available: $channels")

0 commit comments

Comments
 (0)