Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/44badddbdfabac0b4c5ca...
...commit
http://git.netsurf-browser.org/netsurf.git/commit/44badddbdfabac0b4c5ca87...
...tree
http://git.netsurf-browser.org/netsurf.git/tree/44badddbdfabac0b4c5ca8737...
The branch, master has been updated
via 44badddbdfabac0b4c5ca8737f4152f5aca25b89 (commit)
from a4f67018faf7755d077778b750524f3a7555f5c7 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=44badddbdfabac0b4c5...
commit 44badddbdfabac0b4c5ca8737f4152f5aca25b89
Author: Vincent Sanders <vince(a)netsurf-browser.org>
Commit: Vincent Sanders <vince(a)netsurf-browser.org>
fix transparancy on css colour lookup
diff --git a/desktop/system_colour.c b/desktop/system_colour.c
index 7a66350..0944407 100644
--- a/desktop/system_colour.c
+++ b/desktop/system_colour.c
@@ -69,7 +69,7 @@ void gui_system_colour_finalize(void)
colour gui_system_colour_char(const char *name)
{
- colour ret = 0xff00000;
+ colour ret = 0;
unsigned int ccount;
for (ccount = 0; ccount < colour_list_len; ccount++) {
@@ -82,7 +82,7 @@ colour gui_system_colour_char(const char *name)
return ret;
}
-#define ns_color_to_nscss(c) ((0xff - ((c >> 24) & 0xFF)) | (c & 0xFF00) |
((c >> 16) & 0xFF) | ((c & 0xFF) << 16))
+#define ns_color_to_nscss(c) (((0xff - ((c) >> 24) & 0xff) << 24) | ((c)
& 0xFF00) | (((c) >> 16) & 0xFF) | (((c) & 0xFF) << 16))
css_error gui_system_colour(void *pw, lwc_string *name, css_color *colour)
{
-----------------------------------------------------------------------
Summary of changes:
desktop/system_colour.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/desktop/system_colour.c b/desktop/system_colour.c
index 7a66350..0944407 100644
--- a/desktop/system_colour.c
+++ b/desktop/system_colour.c
@@ -69,7 +69,7 @@ void gui_system_colour_finalize(void)
colour gui_system_colour_char(const char *name)
{
- colour ret = 0xff00000;
+ colour ret = 0;
unsigned int ccount;
for (ccount = 0; ccount < colour_list_len; ccount++) {
@@ -82,7 +82,7 @@ colour gui_system_colour_char(const char *name)
return ret;
}
-#define ns_color_to_nscss(c) ((0xff - ((c >> 24) & 0xFF)) | (c & 0xFF00) |
((c >> 16) & 0xFF) | ((c & 0xFF) << 16))
+#define ns_color_to_nscss(c) (((0xff - ((c) >> 24) & 0xff) << 24) | ((c)
& 0xFF00) | (((c) >> 16) & 0xFF) | (((c) & 0xFF) << 16))
css_error gui_system_colour(void *pw, lwc_string *name, css_color *colour)
{
--
NetSurf Browser