Pekka Paalanen
4fbb65372e
Fix build warnings from image_loader
...
Fix the following build warnings, and the build failures due to the
warning fixes:
CC libshared_cairo_la-image-loader.lo
image-loader.c:369:1: warning: no previous prototype for 'load_image'
CC x11_backend_la-compositor-x11.lo
compositor-x11.c: In function 'x11_output_set_icon':
compositor-x11.c:396:2: warning: implicit declaration of function 'load_image'
compositor-x11.c:396:8: warning: assignment makes pointer from integer without a cast
CC wayland_backend_la-compositor-wayland.lo
compositor-wayland.c: In function 'create_border':
compositor-wayland.c:97:2: warning: implicit declaration of function 'load_image'
compositor-wayland.c:97:8: warning: assignment makes pointer from integer without a cast
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
12 years ago
Kristian Høgsberg
c234fb819f
image-loader: Use pixman_image_t, not struct pixman_image_t
13 years ago
Rafal Mielniczuk
9d4ddefcce
image-loader: don't leak pixman_image bits data
...
Set the pixman_image destroy function to free bits data
13 years ago
Martin Olsson
712f5f405e
shared: Don't leak file descriptor in shared/image-loader.c
13 years ago
Kristian Høgsberg
b71302e1db
Fix a few -pedantic warnings
...
We're not enabling -pedantic by default, but a quick test brought up a few
issues that we should fix.
13 years ago
Kristian Høgsberg
ee4b4cb933
shared: Use $(GCC_CFLAGS), fix warnings
13 years ago
Jonas Ådahl
3685c3abf6
Fix `unused-result' warnings.
...
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
13 years ago
Kristian Høgsberg
f02a649a3c
Consolidate image loading code and move to shared/
13 years ago
Tiago Vignatti
0a26641626
clients: fix spelling
...
Signed-off-by: Tiago Vignatti <vignatti@freedesktop.org>
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
13 years ago
Kristian Høgsberg
3d5437c48d
Add support for webp image format
13 years ago
Kristian Høgsberg
902865c757
cairo-util: Only look at first two bytes for jpegs
...
The next two bytes aren't fixed.
13 years ago
Kristian Høgsberg
804e05185b
cairo-util: Don't anger png.h by including setjmp.h
...
Older libpngs are a bit fussy about this, apparently.
13 years ago
Kristian Høgsberg
d654876510
cairo-util: Add png loader and image type sniffing
13 years ago
Kristian Høgsberg
ffe3bba13e
cairo-util: Return NULL instead of exit() on jpeg load failure
13 years ago
Kristian Høgsberg
02453dd699
cairo-util: Dont use non-standard JCS_EXT_BGRX color space
...
Everytime somebody has to write a channel swizzling loop,
God kills a kitten... and a dolphin and a unicorn.
13 years ago
Kristian Høgsberg
bf8bd5aa3a
cairo-util: Fix another last-minute typo
13 years ago
Kristian Høgsberg
27d3866045
cairo-util: Add helper to load jpeg files
13 years ago
Benjamin Franzke
47eb8f4e91
window: Remove display_flush_cairo_device
...
Rather add a flush_surface utility that
flushed the cairo_device thats associated to a surface.
13 years ago
Kristian Høgsberg
1e164b9afd
Move rounded_rect() to cairo-util.c
13 years ago
Kristian Høgsberg
0cd8f6eded
Drive-by optimization of blur_surface()
14 years ago
Kristian Høgsberg
9a686243b6
Add a drag and drop test client
15 years ago
Kristian Høgsberg
b91cd10fcb
Move cairo-util.[ch] to clients/
15 years ago
Kristian Høgsberg
dcb71b62a0
Update decoration drawing to be less cairo path happy
15 years ago
Kristian Høgsberg
49e868cb05
Fix a few bugs in blur implementation
15 years ago
Kristian Høgsberg
7d7b5dbf4d
Tweak theme a bit
15 years ago
Kristian Høgsberg
5fc96ff6e2
Dont use an image surface for the tmp
...
It may have a incompatible stride and there's no point
in using a cairo surface for this.
16 years ago
Kristian Høgsberg
0ac16f056d
Switch to cairo-drm, drop struct buffer hacks.
16 years ago
Kristian Høgsberg
ffd710e653
Put Wayland under the MIT license.
16 years ago
Kristian Høgsberg
e9d550bdd4
Optimize blur further, resize gears with window.
16 years ago
Kristian Høgsberg
873302649a
Optimize blur a bit more.
16 years ago
Kristian Høgsberg
10bdd298b8
Optimize window blur calculation.
16 years ago
Kristian Høgsberg
2f2cfae227
Factor out common cairo code, add blur function.
16 years ago