From: "D. Huizenga" Newsgroups: comp.os.msdos.djgpp Subject: HELP! Why doesn't this work?! Date: Sat, 28 Feb 1998 14:16:11 -0500 Organization: Student Lines: 25 Message-ID: <34F8627A.EAF8EB96@concentric.net> NNTP-Posting-Host: ts001d15.gps-mi.concentric.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hi, I am working on a game using DJGPP and Allegro. I have a function which is supposed to resize bitmaps so that they are the same size in all resolutions. When I call it, the bitmaps are the same size as before I ran the function on them. Any help is greatly appreciated heres the function: void scale_bmp(BITMAP *b, int origsw, int origsh) { BITMAP *temp; int nw, nh; nw = (b->w * SCREEN_W) / origsw; nh = (b->w * SCREEN_H) / origsh; temp = create_bitmap(nw, nh); stretch_blit(b, temp, 0, 0, b->w, b->h, 0, 0, nw, nh); destroy_bitmap(b); b = temp; } -------------------------------------------------- Dan Huizenga E-Mail: Skis AT Concentric DOT net