diff options
author | Jonathan Blandford <jrb@redhat.com> | 1999-12-03 21:57:07 +0000 |
---|---|---|
committer | Jonathan Blandford <jrb@src.gnome.org> | 1999-12-03 21:57:07 +0000 |
commit | d8b35eab3e8f010e0930bbd7e34e966207fc949c (patch) | |
tree | d055ed2ba4d9ba75687df0e3f09977f02b489438 /gdk-pixbuf/io-gif.c | |
parent | a3bf693cd4081c95d8033a94f6d449f8b1f4518a (diff) | |
download | gtk+-d8b35eab3e8f010e0930bbd7e34e966207fc949c.tar.gz |
added a comment to explain this function better.
1999-12-03 Jonathan Blandford <jrb@redhat.com>
* gdk-pixbuf/io-gif.c (gif_fill_in_lines): added a comment to
explain this function better.
Diffstat (limited to 'gdk-pixbuf/io-gif.c')
-rw-r--r-- | gdk-pixbuf/io-gif.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdk-pixbuf/io-gif.c b/gdk-pixbuf/io-gif.c index b74a69a134..e5cef27db3 100644 --- a/gdk-pixbuf/io-gif.c +++ b/gdk-pixbuf/io-gif.c @@ -628,11 +628,15 @@ gif_fill_in_lines (GifContext *context, guchar *dest, guchar v) gif_fill_in_pixels (context, dest, 3, v); gif_fill_in_pixels (context, dest, 4, v); } + /* we don't need a break here. We draw the outer pixels first, then the + * inner ones, then the innermost ones. case 0 needs to draw all 3 bands. + * case 1, just the last two, and case 2 just draws the last one*/ case 1: if (context->draw_ypos > 2) gif_fill_in_pixels (context, dest, -2, v); if (context->draw_ypos < (context->frame_height - 2)) gif_fill_in_pixels (context, dest, 2, v); + /* no break as above. */ case 2: if (context->draw_ypos > 1) gif_fill_in_pixels (context, dest, -1, v); |