Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #6362
| From | Paul Sprangers <Paul@sprie.nl> |
|---|---|
| Subject | Re: Wimp_RedrawWindow protocols |
| Newsgroups | comp.sys.acorn.programmer |
| Date | 2022-04-16 14:49 +0200 |
| Message-ID | <59da0a93c2Paul@sprie.nl> (permalink) |
| References | <59da004dcaPaul@sprie.nl> <mpro.rafl8502cchs903j7.news@stevefryatt.org.uk> |
| Organization | None |
In article <mpro.rafl8502cchs903j7.news@stevefryatt.org.uk>, Steve Fryatt <news@stevefryatt.org.uk> wrote: > You should probably be calling > SYS "Wimp_GetWindowInfo",,block% OR 1 > unless you know that you have space for all of the icon definitions in > block% The window in question doesn't have any icons at all, but the point was that I shouldn't call Wimp_GetWindowInfo in the first place. At least, not before calling Wimp_RedrawWindow. The start of the redraw routine was originally: DEF PROCredraw(wh%) !block% = wh% SYS "Wimp_GetWindowInfo",,block% ox% = block%!4 - block%!20 oy% = block%!16 - block%!24 SYS "Wimp_RedrawWindow",,block% TO more% WHILE more% etc... Following Martin A.'s suggestion, I now have: DEF PROCredraw(wh%) !block% = wh% SYS "Wimp_RedrawWindow",,block% TO more% WHILE more% ox% = block%!4 - block%!20 oy% = block%!16 - block%!24 etc... There's no noticeable difference in behaviour between the two versions, although I would think that the first one might be a microscopic bit faster, since it has to calculate the ox% and oy% only once. So, actually my question is: how compulsory is the alledged rule that no other call should precede the Wimp_RedrawWindow call? Paul -- http://riscos.sprie.nl
Back to comp.sys.acorn.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Wimp_RedrawWindow protocols Paul Sprangers <Paul@sprie.nl> - 2022-04-16 12:57 +0200
Re: Wimp_RedrawWindow protocols Steve Fryatt <news@stevefryatt.org.uk> - 2022-04-16 12:57 +0100
Re: Wimp_RedrawWindow protocols Paul Sprangers <Paul@sprie.nl> - 2022-04-16 14:49 +0200
Re: Wimp_RedrawWindow protocols Harriet Bazley <harriet@bazleyfamily.co.uk> - 2022-04-16 14:19 +0100
Re: Wimp_RedrawWindow protocols Paul Sprangers <Paul@sprie.nl> - 2022-04-16 17:18 +0200
Re: Wimp_RedrawWindow protocols Martin <News03@avisoft.f9.co.uk> - 2022-04-16 14:49 +0100
csiph-web