From a16dc4c558510f8404f2af9d41f5512adba7be1b Mon Sep 17 00:00:00 2001 From: uruk Date: Sat, 20 Jul 2013 16:58:37 +0200 Subject: AVALANCHE: Add comments to Graph::drawSprite(). --- engines/avalanche/graph.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines/avalanche/graph.cpp') 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++) -- cgit v1.2.3