🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #20091

Re: MultiTos redraw problem

#20091
From: Eric R. Smith
Date: Wed, 23 Dec 1992 17:55
57 lines
2583 bytes
In article <1992Dec23.140408.15936@phcomgw.seri.philips.nl> castermn@nlsce1.seri.philips.nl (Luc Castermans) writes:
>I want to force a redraw on the INFO-line in a 
>window. To do that I calculate the x,y,w,h of
>that part and than do an form_dial(FMD_FINISH,...)
>call. The code looks like this:
>
>   void redraw_info(void)
>   {
>       /* fill dimensions of INFO line in window */
>       ...
>       form_dial(FMD_FINISH,...);
>   }
>
>   void redraw(GRECT *area_ptr)
>   {
>       redraw_info();
>
>       /* walk rectangle list below here */
>       .....
>   }
>
>   Upon a WM_REDRAW request redraw() is called.

Let's see what happens when a WM_REDRAW request is sent to the application:

the first thing it does is to call redraw_info. redraw_info does some
stuff, and then calls form_dial *to force a redraw*, i.e. to send another
WM_REDRAW message to the application. When that WM_REDRAW is received,
redraw_info gets called, which calls form_dial, which sends a WM_REDRAW
message, etc.

I would expect this code to produce an infinite sequence of WM_REDRAW
messages.

>This works fine under TOS.

Then it just happens that the timing of the redraw messages is such that
TOS is able to merge some of them. That's only by luck, and I certainly
wouldn't count on it working with all versions of TOS (even non-multitasking
ones).

>I trust the MultiTos I have.

Then you're overly trusting. MultiTOS DOES NOT YET EXIST as a finished
product. EVERY version of MultiTOS now in the world is a beta test
version. Also, if you got your version of MultiTOS from somewhere
other than Atari (and I presume this is the case, or you would have
sent the bug report to Atari rather than to Usenet) then you probably
have an outdated version; plus, of course, it's a pirated copy,
with all of the possible attendant problems. In other words: if you
didn't get it from Atari, don't trust it, and don't use it.

I'm speaking here as a "private citizen". If I were speaking officially
for Atari, I might very well have other (possibly stronger) things
to say.

Eric Smith	ersmith@netcom.com	ersmith@atari.uucp
Technical Details
Message-ID: <1992Dec23.175505.13991@netcom.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!umn.edu!csus.edu!netcom.com!ersmith
References: <1992Dec23.140408.15936@phcomgw.seri.philips.nl>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.atari.st
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!umn.edu!csus.edu!netcom.com!ersmith
From: ersmith@netcom.com (Eric R. Smith)
Subject: Re: MultiTos redraw problem
Message-ID: <1992Dec23.175505.13991@netcom.com>
Organization: Netcom Online Communications Services (408-241-9760 login: guest)
References: <1992Dec23.140408.15936@phcomgw.seri.philips.nl>
Date: Wed, 23 Dec 1992 17:55:05 GMT
Lines: 59