-
Hello,
The Color will be white on red - and this is not what I expect. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi Jens! Sorry for not replying earlier. If you look at the tvision/source/tvision/tvwrite.cpp Lines 354 to 359 in 0917f04 You will see that the The "white on red" color you see is the color shown for invalid palette adresses (originating from In this case, in order to get the behaviour you desire, you should either use a |
Beta Was this translation helpful? Give feedback.
Hi Jens! Sorry for not replying earlier.
If you look at the
writeChar
function:tvision/source/tvision/tvwrite.cpp
Lines 354 to 359 in 0917f04
You will see that the
color
parameter is auchar
(instead of aTColorAttr
) and that it is passed as an argument tomapColor
. This means thecolor
parameter ofwriteChar
is meant to be a color palette index instead of a literal color, which is why you don't get the result you expected.The "white on red" color you see is the color shown for invalid pa…