[fixed] CheckerColor# has red and blue channels reversed

Bugs and Suggestions in XnView Classic which have been resolved

Moderators: XnTriq, helmut, xnview

User avatar
ckv
Posts: 786
Joined: Wed Feb 02, 2005 2:30 pm
Location: Glow

[fixed] CheckerColor# has red and blue channels reversed

Post by ckv »

CheckerColor1 and CheckerColor2 options are using reversed red and blue channels. Meanin that red is used as blue and blue as red (BGR).

Example: If you set CheckerColor1=255 which should result red checker, but instead you get blue checker.

The problem exist with both colour coded and non-coded values.
Last edited by ckv on Fri Nov 27, 2009 11:52 am, edited 1 time in total.
XnView Tweak UI - Tool to customize your XnView beyond the regular XnView options.
UI-less Settings - Documentation of all the hidden settings in XnView.
XFAM - Tool to create and customize XnView file associations.
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France

Re: CheckerColor# options has red and blue channels reversed

Post by Clo »

:arrow: ckv

:) Hello !

• I think that you might set a complete colour code… For instance, here I have :
[View]
CheckerColor1=#FFD7FF
CheckerColor2=#FFFFE7
… and that works perfectly…

:mrgreen: KR
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice
User avatar
ckv
Posts: 786
Joined: Wed Feb 02, 2005 2:30 pm
Location: Glow

Re: CheckerColor# options has red and blue channels reversed

Post by ckv »

Clo wrote::arrow: ckv

:) Hello !

• I think that you might set a complete colour code… For instance, here I have :
[View]
CheckerColor1=#FFD7FF
CheckerColor2=#FFFFE7
… and that works perfectly…

:mrgreen: KR
Claude
Clo
It is a complete colour code. It is just a non-coded color value and it translates to 255 0 0 or #FF0000 as a coded value. If you use any of these values 255, 255 0 0 or #FF0000 you should get a fully red checker, but instead you get blue checker.

In your example CheckerColor1 has same value for red and blue, so sure it works. But CheckerColor2 has different values and this is what it looks like on my screen .
XnView Tweak UI - Tool to customize your XnView beyond the regular XnView options.
UI-less Settings - Documentation of all the hidden settings in XnView.
XFAM - Tool to create and customize XnView file associations.
User avatar
XnTriq
Moderator & Librarian
Posts: 6366
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: CheckerColor# options has red and blue channels reversed

Post by XnTriq »

:bugconfirmed: I had noticed that too, but I forgot to report it. Thanks, ckv!
User avatar
ckv
Posts: 786
Joined: Wed Feb 02, 2005 2:30 pm
Location: Glow

Re: CheckerColor# options has red and blue channels reversed

Post by ckv »

ckv wrote:It is a complete colour code. It is just a non-coded color...
:mrgreen: lol
XnView Tweak UI - Tool to customize your XnView beyond the regular XnView options.
UI-less Settings - Documentation of all the hidden settings in XnView.
XFAM - Tool to create and customize XnView file associations.
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France

Re: CheckerColor# options has red and blue channels reversed

Post by Clo »

:arrow: ckv

:) Again…
…But CheckerColor2 has different values and this is what it looks like on my screen (light blue)
• Here it's "cream" on MY screen as it should !
- Gentlemen, I guess that something is wrong in your machines… or your graphic cards settings… Image

:mrgreen: KR
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice
User avatar
ckv
Posts: 786
Joined: Wed Feb 02, 2005 2:30 pm
Location: Glow

Re: CheckerColor# options has red and blue channels reversed

Post by ckv »

Clo, if you set CheckerColor1=#FF0000, do you get red checkers?
XnView Tweak UI - Tool to customize your XnView beyond the regular XnView options.
UI-less Settings - Documentation of all the hidden settings in XnView.
XFAM - Tool to create and customize XnView file associations.
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Re: CheckerColor# options has red and blue channels reversed

Post by oops66 »

ckv wrote:CheckerColor1 and CheckerColor2 options are using reversed red and blue channels. Meanin that red is used as blue and blue as red (BGR).
Right, I have the same problem here.
XnViewMP Linux X64 - Debian - X64
User avatar
XnTriq
Moderator & Librarian
Posts: 6366
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: CheckerColor# options has red and blue channels reversed

Post by XnTriq »

ckv wrote:CheckerColor1 and CheckerColor2 options are using reversed red and blue channels. Meanin that red is used as blue and blue as red (BGR).
ToolbarBackColor has the same bug.
marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

oops again.

Post by marsh »

Please disregard my post.
User avatar
ckv
Posts: 786
Joined: Wed Feb 02, 2005 2:30 pm
Location: Glow

Re: CheckerColor# options has red and blue channels reversed

Post by ckv »

Not fixed in XnView 1.97 beta.

Only the # or $ formated colors work with CheckerColor1 / CheckerColor2 settings, but raw color and R G B formated values still doesn't work. E.g. CheckerColor1=16711680 or CheckerColor1=0 0 255 should result blue checker, but instead it's red.


This fix also caused a regression with all other formated # and $ color entries.

Example:
TreeBackColor=#0000FF
TreeFontColor=#FFFF00
TreeFontHiColor=#FF0000
These settings should result a folder tree that should look like this:
Image

But in XnView 1.97 beta it looks like this:
Image


Looks like this bug is fixed in the wrong place, as this quote from the changelog hints "INI Color entry with # or $ are reversed"

The problem was not that all # or $ formated colors are reserved, but only CheckerColor1 and CheckerColor2 color entries are reserved. Even the raw non fromated values are reserved with these two settings.
XnView Tweak UI - Tool to customize your XnView beyond the regular XnView options.
UI-less Settings - Documentation of all the hidden settings in XnView.
XFAM - Tool to create and customize XnView file associations.
User avatar
xnview
Author of XnView
Posts: 44470
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: CheckerColor# options has red and blue channels reversed

Post by xnview »

ckv wrote:Not fixed in XnView 1.97 beta.
Ok, i've not fixed the good thing. Could you send me your email by PM, please?
Pierre.
User avatar
ckv
Posts: 786
Joined: Wed Feb 02, 2005 2:30 pm
Location: Glow

Re: CheckerColor# options has red and blue channels reversed

Post by ckv »

Fixed in XnView 1.97 beta 4
XnView Tweak UI - Tool to customize your XnView beyond the regular XnView options.
UI-less Settings - Documentation of all the hidden settings in XnView.
XFAM - Tool to create and customize XnView file associations.