diff options
| author | Andreas Oberritter <obi@opendreambox.org> | 2010-04-26 22:39:15 +0200 |
|---|---|---|
| committer | Andreas Oberritter <obi@opendreambox.org> | 2011-01-11 16:04:05 +0100 |
| commit | 63e32165a14ac9fc3539bfc9631330b5ca73b756 (patch) | |
| tree | 9a028a4ecee8fe5b81ee602233adcb1dfa6fa08d /lib/gdi/accel.cpp | |
| parent | 6a25698b1ff48bafd6d1656be7f447638cc4b136 (diff) | |
| download | enigma2-63e32165a14ac9fc3539bfc9631330b5ca73b756.tar.gz enigma2-63e32165a14ac9fc3539bfc9631330b5ca73b756.zip | |
Added support for accelerated fill (requires updated drivers)
Diffstat (limited to 'lib/gdi/accel.cpp')
| -rw-r--r-- | lib/gdi/accel.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/gdi/accel.cpp b/lib/gdi/accel.cpp index 9450ecca..5049f0b8 100644 --- a/lib/gdi/accel.cpp +++ b/lib/gdi/accel.cpp @@ -138,12 +138,14 @@ int gAccel::fill(gSurface *dst, const eRect &area, unsigned long col) col); return 0; #endif -#if 0 // def BCM_ACCEL - bcm_accel_fill( - dst->data_phys, dst->x, dst->y, dst->stride, - area.left(), area.top(), area.width(), area.height(), - col); - return 0; +#ifdef BCM_ACCEL + if (!m_bcm_accel_state) { + bcm_accel_fill( + dst->data_phys, dst->x, dst->y, dst->stride, + area.left(), area.top(), area.width(), area.height(), + col); + return 0; + } #endif return -1; } |
