Mail Archives: djgpp/1996/06/20/10:42:50
In article <Pine DOT SGI DOT 3 DOT 91 DOT 960618173249 DOT 174C-100000 AT tower DOT york DOT ac DOT uk>
slh100 AT york DOT ac DOT uk "Shawn Hargreaves" writes:
> I did this to make life easier, sorry if it is having the opposite
> effect :-) My reasoning was that, given a lot of images in a single PCX
> file (eg. I typically draw all the frames of a 32x32 character animation
> in one PCX), without some sort of grid it would be a nightmare trying
> to grab just the right bit of the image. If you position all your frames on
> 16x16 grid squares, it's much easier to get the right bit of the bitmap.
>
> If you want to remove the grid, edit grabber.c and in the function:
>
> void grab_bitmap(BITMAP *bmp)
> {
> ... stuff deleted ...
>
> while (!mouse_b) {
> x = mouse_x & 0xFFF0; <----- delete this line!
> if (x + bmp->w > graphic->w)
> x = (graphic->w - bmp->w) & 0xFFF0;
> if (x < 0)
> x = 0;
> y = mouse_y & 0xFFF0; <----- delete this line!
Hi Shawn,
I did exactly what you mention above. The grabbing box just got stuck in the
top right hand corner of the PCX, and refused to move when I moved the mouse!
I think it may have something to do with where the mouse starts, and I am
going to look into it now... If I find a solution, I will let the newsgroup
know.
--
Cheers,
Ben -=Look for "Moo-Juice" on the IRC=-
---------------------====### legal notice ###====--------------------------
Microsoft Network is prohibited from redistributing this work in any
form,in whole or in part. License to distribute this post is available to
Microsoft for $499. Posting without permission constitutes an agreement to
these terms.
- Raw text -