window: Allow hinting of a preference for RGB565 when creating a window
authorTomeu Vizoso <tomeu@tomeuvizoso.net>
Tue, 6 Aug 2013 18:05:54 +0000 (20:05 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 6 Aug 2013 23:49:27 +0000 (16:49 -0700)
commitbee45a14cd5d20bddc6c591acd6856ea259e79f5
tree0831c9a467fa3158969b0fd0efe7d5deccfb9a94
parent0ff790876700d91adf0c323134d5424b3ba49f17
window: Allow hinting of a preference for RGB565 when creating a window

And check if the renderer supports the RGB565 format for wl_shm buffers
before creating the cairo surface and requesting the buffer.

It can save quite some memory with big surfaces such as desktop
backgrounds.
clients/desktop-shell.c
clients/window.c
clients/window.h