aboutsummaryrefslogtreecommitdiff
path: root/queen
diff options
context:
space:
mode:
authorDavid Eriksson2003-10-02 19:31:43 +0000
committerDavid Eriksson2003-10-02 19:31:43 +0000
commitd6c3235c0e01828f3382d41c1a817c3774f545a1 (patch)
tree61d88a1c1437b45994ec29b46bdf07f5ca34ffc4 /queen
parent6d29d07cabafdfef5bc10214a04ca87601403bbf (diff)
downloadscummvm-rg350-d6c3235c0e01828f3382d41c1a817c3774f545a1.tar.gz
scummvm-rg350-d6c3235c0e01828f3382d41c1a817c3774f545a1.tar.bz2
scummvm-rg350-d6c3235c0e01828f3382d41c1a817c3774f545a1.zip
- Added QueenGraphics::bob() method
- Match new[] with delete[] svn-id: r10546
Diffstat (limited to 'queen')
-rw-r--r--queen/graphics.cpp10
-rw-r--r--queen/graphics.h2
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: