Split Color_Pair.brighten into two functions
commit78323d1bcf23af53b61a60b92c714539b32e761d
authorPhilip Pavlick <swashdev@pm.me>
Mon, 9 Mar 2020 21:03:00 +0000 (9 16:03 -0500)
committerPhilip Pavlick <swashdev@pm.me>
Mon, 9 Mar 2020 21:03:00 +0000 (9 16:03 -0500)
tree531acbc3e6854312d2531a0829193496b19d2607
parentb3fd4e9f2a67d4f740f7afc1f144f90c73fbe265
Split Color_Pair.brighten into two functions

Since we can't use negative values to tell the "brighten" function we
want it to brighten the SDL colors dynamically, I've used overloading to
split it into two functions, one of which requires RGB specifications
and one of which doesn't.  I've gone ahead and added a check for
overloading as well.
src/color.d