Mail Archives: djgpp/1997/01/24/00:45:06
Tony O'Bryan writes:
>Whenever I use Grabber to import a PCX image, the grabbing rectangle always
>moves in increments of about ten pixels horizontally and vertically. I need to
>be able to grab an image on a pixel boundary rather than having to manually
>space each image so that Grabber's rectangle will fall upon the correct pixels.
I originally did this to make things easier (it's very hard to get
pixel-perfect positioning with the mouse), but if you want to disable it
you just need to remove some '&' statements from the bitmap grabbing
function in grabber.c.
Alternatively, download the work-in-progress version of Allegro from
http://www.talula.demon.co.uk/allegro/. This contains an improved
grabber that lets you specify any snap size you like, or turn the grid
off altogether.
/*
* Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
* Ghoti: 'gh' as in 'enough', 'o' as in 'women', and 'ti' as in 'nation'.
*/
- Raw text -