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

Enable same FG/BG color when BG color is background image #764

Closed
Maximus5 opened this issue Jul 31, 2015 · 1 comment
Closed

Enable same FG/BG color when BG color is background image #764

Maximus5 opened this issue Jul 31, 2015 · 1 comment

Comments

@Maximus5
Copy link
Owner

Originally reported on Google Code with ID 764

OS version: Win7  SP1   x86
ConEmu version: SVN

Solution seems simple: in CRealConsole::PrepareDefaultColors(...) around line #2400
causes my problem:

    if (nTextColorIdx == nBackColorIdx)
      nBackColorIdx = nTextColorIdx ? 0 : 7;

I inserted an additional condition here which works well for me:

    if (nTextColorIdx == nBackColorIdx)
    if (!(gpSet->nBgImageColors & (1 << nBackColorIdx)))  // bg color is an image
      nBackColorIdx = nTextColorIdx ? 0 : 7;

-------------------------
I tried many ways to using a bright background image with black fonts. Some programs
are hardcoded to write to consoles with color #0 (black) background. So, after many
try I decided to replace Color #0 with an image, and of course I like to use black
fonts. With that additional line this works well. I tried "*" as replace color and
that also works.

Thank You for Your time, I will try to came up with bright ideas instead of these little
cosmetics :)

Reported by nanofoxxx on 2012-10-15 15:47:18

@Maximus5
Copy link
Owner Author

applied with some changes

Reported by ConEmu.Maximus5 on 2012-10-16 07:51:10

  • Status changed: Fixed

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

No branches or pull requests

1 participant