![]() |
#1 |
Knight
Join Date: Jan 2009
Posts: 657
![]() |
Angband colours in Windows / Linux
I've noticed that the colours used to display Angband are a lot easier to see when running Linux than when running Windows (same computer, same monitor). Anyone else seen the same thing?
__________________
Currently turning (Angband) Japanese. |
![]() |
![]() |
![]() |
#2 |
Swordsman
Join Date: Jul 2008
Posts: 308
![]() |
Are the fonts different? Thicker lines, perhaps?
|
![]() |
![]() |
![]() |
#3 |
Knight
Join Date: Jan 2009
Posts: 657
![]() |
I think the fonts are probably slightly different, but I'm pretty sure it's the color that is making the difference. I don't actually no how to take screen-shots in Linux or I could investigate a little more.
__________________
Currently turning (Angband) Japanese. |
![]() |
![]() |
![]() |
#4 |
Knight
Join Date: Jan 2009
Posts: 657
![]() |
OK, I (eventually) worked out how to take a screenshot in Linux.
Windows is on the left, Linux on the right. Yes, Linux was larger (I increased the Windows clip to make it easier to see the colours) but the '7' is clearly darker in the Windows version. I think the '1' in Linux should be same colour as the 'C' in Windows as well - again Linux is lighter in colour.
__________________
Currently turning (Angband) Japanese. |
![]() |
![]() |
![]() |
#5 |
Swordsman
Join Date: Jul 2008
Posts: 308
![]() |
Unfortunately JPG screenshots are not so good for diagnosing color issues due to lossy compression. The RGB values in the screenshot may not be what's displayed on your screen since hue information is distorted by JPG.
The RGB values are hard-coded in the Angband color table. If you're seeing differences between Linux and Windows then I can only speculate that there are platform-specific differences in how the palette entries are initialized for the display. Perhaps the Linux version is using color names instead of RGB values? |
![]() |
![]() |
![]() |
#6 | |
Knight
Join Date: Jan 2009
Posts: 657
![]() |
Quote:
As you can see here the compression is not lossy.
__________________
Currently turning (Angband) Japanese. |
|
![]() |
![]() |
![]() |
#7 |
Swordsman
Join Date: Jul 2008
Posts: 308
![]() |
They may have been PNG to begin with, but whatever method you used to post the images converted them into JPGs. I can see compression artifacts clearly in both images, and my browser confirms that it is a JPG image.
Location: http://angband.oook.cz/forum/attachm...8&d=1241711556 Type: JPEG image Dimensions: 373px x 280px Title: win_vs_linux.jpg |
![]() |
![]() |
![]() |
#8 | |
Knight
Join Date: Jan 2009
Posts: 657
![]() |
Quote:
However the essential point is that the difference in colours is real and not an artifact of .jpg compression as is clearly shown by the stretched image of the '7' from each respective OS snapshot.
__________________
Currently turning (Angband) Japanese. |
|
![]() |
![]() |
![]() |
#9 |
Swordsman
Join Date: Jul 2008
Posts: 308
![]() |
The darker 7 (the Windows version) matches the Angband color table entry for TERM_L_DARK with an RGB color value of 606060
The lighter 7 (the Linux version) does not match any entry in the Angband color table. Its RGB value appears to be 898989. Perhaps the Linux code is initializing the palette from color names rather than RGB values? I don't know what's going on here. |
![]() |
![]() |
![]() |
#10 |
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 56
Posts: 9,319
Donated: $60
![]() ![]() |
If you're using the X11 port in Linux, it does Gamma correction; I'm not sure about the others. Nor am I sure any more what Gamma correction is...
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Angband Borg 3.0.9 and windows | Zappa | Vanilla | 38 | October 27, 2010 20:31 |
Compiling Z+Angband under Windows | Altefcat | Variants | 8 | December 11, 2008 09:44 |
Angband and the Borg on Linux | wastedyouth | Vanilla | 20 | July 23, 2008 00:08 |
How to change font in angband (linux)? | danvari | Vanilla | 3 | February 28, 2008 13:44 |
Angband 3.0.9 under Linux (graphics?) | strangeintp | Vanilla | 4 | January 19, 2008 22:44 |