Xref: news2.mv.net comp.os.msdos.djgpp:5004 From: Ben Ashley Newsgroups: comp.os.msdos.djgpp Subject: Re: A few more DJGPP Questions... Date: Fri, 14 Jun 96 20:21:50 GMT Organization: Flag Bearers Lines: 55 Message-ID: <834783710snz@flag.demon.co.uk> References: Reply-To: Ben AT flag DOT demon DOT co DOT uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp In article slh100 AT york DOT ac DOT uk "Shawn Hargreaves" writes: > On Fri, 14 Jun 1996, Ben Ashley wrote: > > > problems there. Does allegro use the wonderful DJGPP memory management? > > > > Rhide told me my memory situation was '8M / 6M'. Does this really > > mean I can finally write a program which is graphic intensive and may > > need to store megabytes of graphic/sound data? I do hope so... > > Memory management isn't something you have to use as such, it just _is_ :-) > Forget about segments and 640k limits: however much RAM you have in your > machine, that is how much you can use. And if you go on allocating RAM > beyond that amount, no problems, virtual memory will be used instead. > > So yes, there is no problem loading up several megs of graphics. Sound data > is a bit different becuase it gets locked and can't be swapped out to > disk, thus samples can't use virtual memory, but you can fit a lot into 8 > megs of physical RAM in any case. > > Try malloc(1024*1024*64) sometime, it works great :-) Great... Actually, I was gonna Email you about something, but I didn't know if you were still around :). Still, I may aswell ask my Email questions here: I have looked at the docs for allegro. I am converting a huge set of classes from VC++, to work in DJGPP, and your allegro system will come in major use with these application classes... But I have a few questions: 1. In my picture boxes, I am going to create a bitmap, with the dimensions of the client area of the picture boxes. Any drawing/writing to this control willl therefore go to the bitmap. Hoe easy is it to copy this memory bitmap to screen? Should I create A sub-bitmap or what? I only want one copy of the picture boxes data, and then whenever the control need redrawing, I copy the bitmap data from the bitmap I created in mem to the screen. 2. If the picture box resized, how would I go about resizing the bitmap? Do I just put it in a temporary location, delete the old, make a new one with the new size, clear it and copy the stored bitmap to the new one? -- 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.