Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Odd behavior when changing cell background color from (x,z,z) to (y,z,z) #116

Closed
JoatDelia opened this issue May 2, 2022 · 4 comments
Closed
Labels

Comments

@JoatDelia
Copy link

JoatDelia commented May 2, 2022

I have only tested this with Console.print and Console.clear. Whenever I try to change the background color of one or more cells from (x,z,z) to (y,z,z) using those functions, the color doesn't update properly unless I also change which character is displayed in that cell.

Edit: For the sake of completeness, I have since decided to test what would happen if the second and third values in the color tuples differed (in this case, I tried changing the background from (50,50,51 to 170,50,51)) and the result was the same.

@HexDecimal
Copy link
Collaborator

Which renderers are being used?

@HexDecimal HexDecimal added the bug label May 2, 2022
@JoatDelia
Copy link
Author

I was originally using the default option. Testing this under a few different options, I notice that the glitch seems to only occur with SDL2-based options, while OpenGL-based options work fine.

@HexDecimal
Copy link
Collaborator

Looks like I'll have to check the SDL renderer optimizations then. I know where to look now.

@HexDecimal
Copy link
Collaborator

I fixed a check that was missing the red channel. I've tagged a new release of python-tcod (13.6.2) which you can update to once it deploys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants