progs/samples: improve copy.c demo
authorBrian Paul <brianp@vmware.com>
Wed, 17 Mar 2010 16:17:04 +0000 (10:17 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 17 Mar 2010 16:17:06 +0000 (10:17 -0600)
commita196a5d3303a49c5f79a283f91f8e0cc8aa87f69
treefa5e812212d289ca97a775f193082a889fac525d
parentef92fe85de114cb50ca4b3070d0594aade54526c
progs/samples: improve copy.c demo

If the test image was larger than the window, nothing was drawn because
of invalid raster position.  Use glWindowPos instead of glRasterPos.
Also, use integer src/dst coordinates to avoid grabbing black pixels
outside of the src image region.
progs/samples/copy.c