Skip to content
Snippets Groups Projects
Commit f55039de authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Only base drag-select highlight on the legacy attribute.

The fg/bg values all have multiple representations, and some bits
have extra meanings, so inequality there doesn't mean they're not
the same colour.

This fixes an issue where the *second* drag select on a screen
would not highlight blue backgrounds correctly.  The background
colour gets the "pixels set" bit flown because of how
restorescreen() works, which caused this to "know" it's not blue
and use a blue background.

A (good) argument could be made that savescreen()/restorescreen()
shouldn't result in any changes, but since uifc32 doesn't directly
use colours that aren't represented by legacy attributes, there's
no need for it to get tricky here.
parent 0d5fb2d7
No related branches found
No related tags found
No related merge requests found
Pipeline #8216 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment