Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!think.com!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!kth.se!news From: glazou@mowitz.pdc.kth.se (Daniel Glazman) Newsgroups: comp.sys.atari.st.tech Subject: Re: Closing AES boxes interfering with VDI drawing Message-ID: Date: 17 Dec 90 09:12:33 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@kth.se (News Administrator) Organization: The Royal Institute of Technology, Stockholm, Sweden Lines: 38 In-reply-to: rosenkra@convex.com's message of 15 Dec 90 04:46:29 GMT 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... THIS IS DEFINITELY NOT A GOOD WAY OF PROGRAMMING GRAPHICS ! 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 ! Daniel. -- +---------------------------------------+-------------------------------------+ | Daniel Glazman , TDS | glazou@mowitz.pdc.kth.se | | The Royal Institute of Technology | | | S-100 44 STOCKHOLM, SWEDEN | glazman@inf.enst.fr | +---------------------------------------+-------------------------------------+ | "Ca fait 25 ans que je me demande pourquoi je suis encore la a me demander | | ce que je fais ici..." Anonyme | | | | "Gardez votre ville propre : mangez un pigeon !" Gary Gregory. | +-----------------------------------------------------------------------------+