diff options
author | Christian Völlinger <zerov83@gmail.com> | 2014-01-06 12:00:02 +0100 |
---|---|---|
committer | Christian Völlinger <zerov83@gmail.com> | 2014-01-06 12:00:02 +0100 |
commit | d4649f5f68226bf2c92415b401194a67e5749d5e (patch) | |
tree | 5e03d4180946f24571c0a9c6c96bac264730b4b0 /Pixel.h | |
parent | 00e51c9708642efff7c23f235921a324e1df9a37 (diff) | |
download | vdr-plugin-boblight-d4649f5f68226bf2c92415b401194a67e5749d5e.tar.gz vdr-plugin-boblight-d4649f5f68226bf2c92415b401194a67e5749d5e.tar.bz2 |
Performance improvements
Fixes some OSD Bugs
Fixes bug in loading settings
Diffstat (limited to 'Pixel.h')
-rw-r--r-- | Pixel.h | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -31,14 +31,9 @@ struct Pixel unsigned char r; unsigned char a; - int isBlack(int threshold = 3) { - - if (r > threshold || g > threshold || b > threshold) { - return false; - } - return true; + inline int isBlack(int threshold) { + return (r < threshold || g < threshold || b < threshold); } - }; #endif
\ No newline at end of file |