William Jon McCann
13998c55e7
docs: use proper quotations instead of '*'
2014-02-07 14:22:39 -05:00
Benjamin Otte
e9fb8ad1f7
css: Fix computation of pixels occupied by blur radius
...
These computations were done randomly in lots of places and more often
than not, they were also wrong.
This function was copied (with docs) from Firefox:
http://lxr.mozilla.org/mozilla-central/source/gfx/2d/Blur.cpp
https://bugzilla.gnome.org/show_bug.cgi?id=723159
2014-02-03 21:38:16 +01:00
Benjamin Otte
a239f2e8b0
blur: Do the same thing for rows and cols
2012-09-20 02:45:41 +02:00
Benjamin Otte
502a2bf625
blur: Use rowstride
2012-09-20 02:45:41 +02:00
Benjamin Otte
65ba8901aa
blur: Simplify code
...
It's always the same code, so there's no need for switch statements.
2012-09-20 02:45:41 +02:00
Benjamin Otte
267d1793c6
blur: Fix pixel sizes
...
The code accesses pixels in a chunks of 4 bytes, so we must only support
formats where the size of a single pixel is 4 bytes.
Fix RGB24 to be 4 bytes (the alpha channel is ignored) and disallow A8.
2012-09-20 02:45:41 +02:00
Benjamin Otte
1cecaf6d7e
blur: Take the radius as a double parameter
...
It's only ever used like that
2012-09-20 02:45:41 +02:00
Andrea Cimitan
43673dafdc
Add code for blurring (original code from Unico, copyright fine for Gtk+)
2012-09-20 02:45:41 +02:00