diff options
Diffstat (limited to 'queen')
-rw-r--r-- | queen/graphics.cpp | 10 | ||||
-rw-r--r-- | queen/graphics.h | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/queen/graphics.cpp b/queen/graphics.cpp index 14d724caee..7f464675f6 100644 --- a/queen/graphics.cpp +++ b/queen/graphics.cpp @@ -39,7 +39,7 @@ QueenGraphics::~QueenGraphics() { delete _banks[i].data; } // frameClearAll(); - delete _shrinkBuffer.data; + delete[] _shrinkBuffer.data; } @@ -492,6 +492,14 @@ void QueenGraphics::bobClearAll() { } } +BobSlot *QueenGraphics::bob(int index) { + if (index < MAX_BOBS_NUMBER) + return _bobs + index; + else { + error("QueenGraphics::bob called with index = %i but MAX_BOBS_NUMBER = %i", + index, MAX_BOBS_NUMBER); + } +} void QueenGraphics::frameErase(uint32 fslot) { diff --git a/queen/graphics.h b/queen/graphics.h index 01a0adf37c..f630304dc5 100644 --- a/queen/graphics.h +++ b/queen/graphics.h @@ -113,6 +113,8 @@ public: void bobDrawAll(); // drawbobs() void bobClearAll(); // clearallbobs() + BobSlot *bob(int index); + void frameErase(uint32 fslot); private: |