www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/24/00:45:06

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Fine tuning Grabber's movements
Date: Thu, 23 Jan 1997 20:45:56 +0000
Organization: None
Lines: 20
Distribution: world
Message-ID: <nilq$OAE485yEw$T@talula.demon.co.uk>
References: <32e29c31 DOT 11792266 AT ursa DOT smsu DOT edu>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019