[Freeciv-Dev] Re: (PR#11792) New fog of war is too dark
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: |
[Freeciv-Dev] Re: (PR#11792) New fog of war is too dark |
From: |
"Christian Knoke" <chrisk@xxxxxxxxx> |
Date: |
Wed, 5 Jan 2005 03:07:17 -0800 |
Reply-to: |
bugs@xxxxxxxxxxx |
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=11792 >
On Tue, Jan 04, 2005 at 01:49:31PM -0800, Jason Short wrote:
Your patch is for HEAD, that's why the problems.
This patch is for S2_0 and it makes fog level == 65 %
I think this is optimal :-) Its not too dark but you can feel the fog.
But maybe others like to see a slider?
Christian
--
Christian Knoke * * * http://cknoke.de
* * * * * * * * * Ceterum censeo Microsoft esse dividendum.
--- client/gui-gtk-2.0/mapview.c.orig 2005-01-05 11:51:02.000000000 +0100
+++ client/gui-gtk-2.0/mapview.c 2005-01-05 11:58:41.000000000 +0100
@@ -916,11 +916,11 @@
guint32 pixel = gdk_image_get_pixel(ftile, x, y);
guint8 red = ((pixel & ftile->visual->red_mask)
- >> ftile->visual->red_shift) / 2;
+ >> ftile->visual->red_shift) * 65 / 100;
guint8 green = ((pixel & ftile->visual->green_mask)
- >> ftile->visual->green_shift) / 2;
+ >> ftile->visual->green_shift) * 65 / 100;
guint8 blue = ((pixel & ftile->visual->blue_mask)
- >> ftile->visual->blue_shift) / 2;
+ >> ftile->visual->blue_shift) * 65 / 100;
guint32 result = red << ftile->visual->red_shift
| green << ftile->visual->green_shift
| blue << ftile->visual->blue_shift;
|
|