You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!glk_style_measure(mainwin, style_Normal, stylehint_TextColor, &mainfg))
mainfg=0;
if (!glk_style_measure(mainwin, style_Normal, stylehint_BackColor, &mainbg))
mainbg=0;
For a Glk library like Remglk, it doesn't currently support measuring styles. I'm not sure if any support will be possible. In this case, TADS sets both mainfg and mainbg to black, which is not ideal. If we can't detect the colours we should at least set contrasting colours, like black on white.
Or alternatively set them to a value indicating unknown, and avoid using them in the future. It appears that they are really only used to set style_User1 to reverse mode, instead of sending an actual reverse stylehint. Is this even useful?
The text was updated successfully, but these errors were encountered:
tads-runner/osglk.c
Lines 149 to 154 in 36b263a
For a Glk library like Remglk, it doesn't currently support measuring styles. I'm not sure if any support will be possible. In this case, TADS sets both
mainfg
andmainbg
to black, which is not ideal. If we can't detect the colours we should at least set contrasting colours, like black on white.Or alternatively set them to a value indicating unknown, and avoid using them in the future. It appears that they are really only used to set style_User1 to reverse mode, instead of sending an actual reverse stylehint. Is this even useful?
The text was updated successfully, but these errors were encountered: