How to use blitters without disturbing other planes #1450
Replies: 2 comments 5 replies
-
Ahhh, I see what's going on. Note that the cruft is coming from places where you're not emitting a glyph in your clock. You set the fg and bg of your plane's output to opaque (shouldn't be necessary, btw -- I assume you did that thinking it would address this issue? logical, but sadly incorrect), but that's only going to affect the places where you write. Those are properly opaque. The other cells are not being marked opaque, but are instead the default transparent and default background/foreground, with no EGC. The solver thus gets { default background, default foreground, blitted EGC } for each cell, which looks like black and white squares.
i was a bit C-ish here; adapt it to idiomatic C++ as you see fit. check out thanks for using Notcurses! |
Beta Was this translation helpful? Give feedback.
-
I wrote a simple clock program that can have a background image. I use a Visual and blit it with NCBLITT_1x1, and it looks like this:
Fine, but if I use another blitter, such as NCBLITT_2x1 or 2x2, it looks like this:
The clock area is actually 5 planes sitting on one, and to move the whole clock I just move the one plane it sits on. I don't know why that center plane is being rendered like that. What's going on here, and how do I fix it if it's possible?
Here's the repo, if you wanna dig around: https://github.com/ColeW-Picaro/notclock
Beta Was this translation helpful? Give feedback.
All reactions