diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2005-12-07 14:15:25 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2005-12-07 14:15:25 +0000 |
| commit | 22143de3c8c4780166beeb1e0a1575768c76bfe4 (patch) | |
| tree | 5e52727ce72b95aff5ff8538c8cfbd20dc807b8e /lib/gdi/gpixmap.cpp | |
| parent | b042ba84124b5641caa551a9f41478a7a563ae82 (diff) | |
| download | enigma2-22143de3c8c4780166beeb1e0a1575768c76bfe4.tar.gz enigma2-22143de3c8c4780166beeb1e0a1575768c76bfe4.zip | |
fix alphatest (HACK!!!)
Diffstat (limited to 'lib/gdi/gpixmap.cpp')
| -rw-r--r-- | lib/gdi/gpixmap.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/gdi/gpixmap.cpp b/lib/gdi/gpixmap.cpp index 8fc26399..3e07bca0 100644 --- a/lib/gdi/gpixmap.cpp +++ b/lib/gdi/gpixmap.cpp @@ -180,7 +180,10 @@ void gPixmap::blit(const gPixmap &src, ePoint pos, const gRegion &clip, int flag for (unsigned int i=0; i<clip.rects.size(); ++i) { eRect area=eRect(pos, src.size()); - area&=clip.rects[i]; + + if (!(flag & blitAlphaTest)) // HACK !! + area&=clip.rects[i]; + area&=eRect(ePoint(0, 0), size()); if ((area.width()<0) || (area.height()<0)) continue; @@ -309,7 +312,7 @@ void gPixmap::blit(const gPixmap &src, ePoint pos, const gRegion &clip, int flag // use duff's device here! while (width--) { - if (!*src) + if (*src==0x01) { src++; dst++; |
