summaryrefslogtreecommitdiff
path: root/Pixel.h
diff options
context:
space:
mode:
authorChristian Völlinger <zerov83@gmail.com>2014-01-06 12:00:02 +0100
committerChristian Völlinger <zerov83@gmail.com>2014-01-06 12:00:02 +0100
commitd4649f5f68226bf2c92415b401194a67e5749d5e (patch)
tree5e03d4180946f24571c0a9c6c96bac264730b4b0 /Pixel.h
parent00e51c9708642efff7c23f235921a324e1df9a37 (diff)
downloadvdr-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.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/Pixel.h b/Pixel.h
index 55a684f..2acb9db 100644
--- a/Pixel.h
+++ b/Pixel.h
@@ -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