Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/1c466369ef102d012bb9c8d8ff0a1f346c0627ed
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/1c466369ef102d012bb9c8d8ff0a1f346c0627ed
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/1c466369ef102d012bb9c8d8ff0a1f346c0627ed

The branch, master has been updated
       via  1c466369ef102d012bb9c8d8ff0a1f346c0627ed (commit)
      from  c95adedc06f64b7467786d91314463588213520a (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=1c466369ef102d012bb9c8d8ff0a1f346c0627ed
commit 1c466369ef102d012bb9c8d8ff0a1f346c0627ed
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>

    webp: NetSurf bitmap format is RGBA.
    
    Issue a bitmap modified call after conversion, to allow front ends
    with different pixel formats to convert.

diff --git a/content/handlers/image/webp.c b/content/handlers/image/webp.c
index cbcb5ce..1e20890 100644
--- a/content/handlers/image/webp.c
+++ b/content/handlers/image/webp.c
@@ -129,7 +129,7 @@ webp_cache_convert(struct content *c)
 
        rowstride = guit->bitmap->get_rowstride(bitmap);
 
-       decoded = WebPDecodeBGRAInto(source_data,
+       decoded = WebPDecodeRGBAInto(source_data,
                                     source_size,
                                     pixels,
                                     webpfeatures.width * webpfeatures.height * 
4,
@@ -140,6 +140,8 @@ webp_cache_convert(struct content *c)
                return NULL;
        }
 
+       guit->bitmap->modified(bitmap);
+
        return bitmap;
 }
 


-----------------------------------------------------------------------

Summary of changes:
 content/handlers/image/webp.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/content/handlers/image/webp.c b/content/handlers/image/webp.c
index cbcb5ce..1e20890 100644
--- a/content/handlers/image/webp.c
+++ b/content/handlers/image/webp.c
@@ -129,7 +129,7 @@ webp_cache_convert(struct content *c)
 
        rowstride = guit->bitmap->get_rowstride(bitmap);
 
-       decoded = WebPDecodeBGRAInto(source_data,
+       decoded = WebPDecodeRGBAInto(source_data,
                                     source_size,
                                     pixels,
                                     webpfeatures.width * webpfeatures.height * 
4,
@@ -140,6 +140,8 @@ webp_cache_convert(struct content *c)
                return NULL;
        }
 
+       guit->bitmap->modified(bitmap);
+
        return bitmap;
 }
 


-- 
NetSurf Browser

_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to