aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMax Horn2004-10-07 16:09:30 +0000
committerMax Horn2004-10-07 16:09:30 +0000
commitf52893217e0c886b0b3c8c5c9bdad7809fc45454 (patch)
tree98d56bd1ae8156c1c1096c2d976584b1f523d5c4 /scumm
parent7564fc2323d92e282ea3c0e027b9d10de71babbb (diff)
downloadscummvm-rg350-f52893217e0c886b0b3c8c5c9bdad7809fc45454.tar.gz
scummvm-rg350-f52893217e0c886b0b3c8c5c9bdad7809fc45454.tar.bz2
scummvm-rg350-f52893217e0c886b0b3c8c5c9bdad7809fc45454.zip
Adjusted come comments
svn-id: r15447
Diffstat (limited to 'scumm')
-rw-r--r--scumm/gfx.cpp10
-rw-r--r--scumm/resource.cpp2
2 files changed, 6 insertions, 6 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index 6135ff1cda..0bae2c7c9f 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -1373,8 +1373,8 @@ void Gdi::drawBitmap(const byte *ptr, VirtScreen *vs, int x, int y, const int wi
* Draw a bitmap onto a virtual screen. This is main drawing method for room backgrounds
* used throughout in 7.2+ HE versions.
*
- * TODO: This function essentially is a stripped down & special cased version of
- * the generic Gdi::drawBitmap() method. We might consider merging those two.
+ * @note This function essentially is a stripped down & special cased version of
+ * the generic Gdi::drawBitmap() method.
*/
void Gdi::drawBMAPBg(const byte *ptr, VirtScreen *vs, int startstrip) {
assert(ptr);
@@ -1389,7 +1389,7 @@ void Gdi::drawBMAPBg(const byte *ptr, VirtScreen *vs, int startstrip) {
code = *bmap_ptr++;
- // TODO: The following few lines more or less duplicate decompressBitmap(), only
+ // The following few lines more or less duplicate decompressBitmap(), only
// for an area spanning multiple strips. In particular, the codecs 13 & 14
// in decompressBitmap call drawStripHE()
if (code == 150) {
@@ -1705,8 +1705,8 @@ dec_next:
}
void Gdi::copyVirtScreenBuffers(const Common::Rect &rect) {
- int rw = rect.right - rect.left;
- int rh = rect.bottom - rect.top;
+ const int rw = rect.width();
+ const int rh = rect.height();
byte *src, *dst;
src = _vm->virtscr[0].getBackPixels(rect.left, rect.top);
diff --git a/scumm/resource.cpp b/scumm/resource.cpp
index be32437ea4..5d34591125 100644
--- a/scumm/resource.cpp
+++ b/scumm/resource.cpp
@@ -594,7 +594,7 @@ void ScummEngine::readIndexFile() {
readResTypeList(rtRoomImage, MKID('RMIM'), "room image");
break;
- case MKID('ANAM'):
+ case MKID('ANAM'): // Used by: The Dig, FT
debug(9, "found ANAM block, reading audio names");
_numAudioNames = _fileHandle.readUint16LE();
_audioNames = (char*)malloc(_numAudioNames * 9);