libtcod / python-tcod

A high-performance Python port of libtcod. Includes the libtcodpy module for backwards compatibility with older projects.
BSD 2-Clause "Simplified" License
404 stars 37 forks source link

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

Closed JoatDelia closed 2 years ago

JoatDelia commented 2 years ago

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 commented 2 years ago

Which renderers are being used?

JoatDelia commented 2 years ago

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 commented 2 years ago

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

HexDecimal commented 2 years ago

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.