wrlib: Merge some duplicate code when allocating color
commitfa4d50a0caa41c994128781b18ae48682cb64cd1
authorDavid Maciejak <david.maciejak@gmail.com>
Mon, 8 Dec 2014 03:10:31 +0000 (8 10:10 +0700)
committerCarlos R. Mafra <crmafra@gmail.com>
Wed, 10 Dec 2014 10:19:18 +0000 (10 10:19 +0000)
tree0f72462abba73c7c2c89a7ae32d0cecedb4af3d8
parent0c938a3c0c3c343845b175fde419f45e0971403e
wrlib: Merge some duplicate code when allocating color

This patch is adding a static function named allocateColor to merge
some duplicate code.
wrlib/context.c