testdisplay: Map the fb inside paint_color_key()
authorDamien Lespiau <damien.lespiau@intel.com>
Wed, 4 Sep 2013 11:12:37 +0000 (12:12 +0100)
committerDamien Lespiau <damien.lespiau@intel.com>
Mon, 30 Sep 2013 17:04:21 +0000 (18:04 +0100)
commit5a1d84300ba31bec08c05db7d1c602c80e932021
treeb2be76263fb24a4240e2396f0aa060d012068a7f
parent0396273972076909f92429503232cff1be38e640
testdisplay: Map the fb inside paint_color_key()

So the code for this is self-contained. This goes along the way of
reducing the number of global variables in testdisplay.

Take the opportunity to unmap the fb after use as well.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
tests/testdisplay.c