X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/48990707ae3c60707752d3ab5c98e33d49caee9c..ecc23dd3be5128650082a594b7e2939922d7462c:/lib/gdi/accel.cpp diff --git a/lib/gdi/accel.cpp b/lib/gdi/accel.cpp index f1ffe193..bf9a5a44 100644 --- a/lib/gdi/accel.cpp +++ b/lib/gdi/accel.cpp @@ -9,7 +9,7 @@ #include gAccel *gAccel::instance; -// #define BCM_ACCEL +#define BCM_ACCEL #ifdef ATI_ACCEL extern int ati_accel_init(void); @@ -50,7 +50,7 @@ gAccel::gAccel() ati_accel_init(); #endif #ifdef BCM_ACCEL - bcm_accel_init(); + m_bcm_accel_state = bcm_accel_init(); #endif } @@ -95,12 +95,15 @@ int gAccel::blit(gSurface *dst, const gSurface *src, const eRect &p, const eRect return 0; #endif #ifdef BCM_ACCEL - bcm_accel_blit( - src->data_phys, src->x, src->y, src->stride, - dst->data_phys, dst->x, dst->y, dst->stride, - area.left(), area.top(), area.width(), area.height(), - p.x(), p.y(), p.width(), p.height()); - return 0; + if (!m_bcm_accel_state) + { + bcm_accel_blit( + src->data_phys, src->x, src->y, src->stride, + dst->data_phys, dst->x, dst->y, dst->stride, + area.left(), area.top(), area.width(), area.height(), + p.x(), p.y(), p.width(), p.height()); + return 0; + } #endif return -1; }