Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!texsun!convex!rosenkra From: rosenkra@convex.com (William Rosencranz) Newsgroups: comp.sys.atari.st.tech Subject: Re: Closing AES boxes interfering with VDI drawing Message-ID: <111628@convex.convex.com> Date: 17 Dec 90 21:28:10 GMT References: <9267@ncar.ucar.edu> <1990Nov29.145734.1059@chinet.chi.il.us> <27569349.8114@maccs.dcss.mcmaster.ca> <111330@convex.convex.com> Sender: news@convex.com Organization: Convex Computer Corporation; Richardson, TX Lines: 51 In article glazou@mowitz.pdc.kth.se (Daniel Glazman) writes: > >In article <111330@convex.convex.com> rosenkra@convex.com (William Rosencranz) writes: > >> there is a better way, at least i use it: >> >> 1) as above >> 2) save ALL the screen to a 32000 byte buffer > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> 3) objc_draw anywhere u like >> 4) form_do as above, in a loop while (!exit_condition) >> 5) on exit, restore the entire screen from the buffer > > > AAAARRRRGGGGGLLLLL !!!! Never do that !!!! NOW, the screen buffer is >32000 bytes long, but if you uses a greater scrn, your routine will only save a >small part of it... Same thing if you use Protos or any other screen soft- >enhancer... good point, though i plead pressed for time :-) actually, if u look at all the examples of "good" programming atari put out "in the beginning", this was often used. the "correct" way is to first ascertain the size of the screen (one of the open workstation workout[] entries, as i recall) then malloc/Malloc the space. maybe i SHOULD have said "allocate enuf space for the screen and save it to this buffer" rather than 32k. picky, picky... > THIS IS DEFINITELY NOT A GOOD WAY OF PROGRAMMING GRAPHICS ! aw, c'mon, dan. it is not THAT bad. lighten up! and it is the only way i know of to use dialogs larger than 25% of the screen. unless u can suggest a better approach? i'd gladly change my evil ways :-). > With such hints, when the resolution or the hardware changes, the >program does not work any more ! A good development muST work on all ST-models >with any hardware you want... I know this not easy to realize, but it's the >price you have to pay if you want to see the ST as a professional computer ! i really do not think this affects most *current* ST owners. and i use line A, too, so u can get on my case there, too, since i don't think the TT supports it, though this has been a sanctioned as OK by atari up to now, i believe (since i got a nice laser-printed S.A.L.A.D. from atari maybe 1.5 yr ago). -bill rosenkra@convex.com -- Bill Rosenkranz |UUCP: {uunet,texsun}!convex!c1yankee!rosenkra Convex Computer Corp. |ARPA: rosenkra%c1yankee@convex.com