diff options
author | uruk | 2013-07-20 16:58:37 +0200 |
---|---|---|
committer | uruk | 2013-07-20 16:58:37 +0200 |
commit | a16dc4c558510f8404f2af9d41f5512adba7be1b (patch) | |
tree | e7dd83312723d27f64e0a7b15228d1cdbe000163 | |
parent | 44bf47f75e03f9b599c9aef32f9ecdc95c5b7736 (diff) | |
download | scummvm-rg350-a16dc4c558510f8404f2af9d41f5512adba7be1b.tar.gz scummvm-rg350-a16dc4c558510f8404f2af9d41f5512adba7be1b.tar.bz2 scummvm-rg350-a16dc4c558510f8404f2af9d41f5512adba7be1b.zip |
AVALANCHE: Add comments to Graph::drawSprite().
-rw-r--r-- | engines/avalanche/graph.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/avalanche/graph.cpp b/engines/avalanche/graph.cpp index 04b5f2e015..3e22f451a5 100644 --- a/engines/avalanche/graph.cpp +++ b/engines/avalanche/graph.cpp @@ -84,6 +84,7 @@ void Graph::drawBar(int16 x1, int16 y1, int16 x2, int16 y2, int16 color) { void Graph::drawSprite(const SpriteInfo &sprite, byte picnum, int16 x, int16 y) { + /* First we make the pixels of the spirte blank. */ for (byte qay = 0; qay < sprite.yl; qay++) { byte *mask = new byte[sprite.xl]; @@ -97,6 +98,7 @@ void Graph::drawSprite(const SpriteInfo &sprite, byte picnum, int16 x, int16 y) delete[] mask; } + /* Then we draw the picture to the blank places. */ uint16 i = 0; // Because the original siltype starts at 5!!! See Graph.h for definition. for (byte qay = 0; qay < sprite.yl; qay++) |