Wimp question

Tony van der Hoff tony at mk-net.demon.co.uk
Wed Aug 1 17:51:52 BST 2001


On 1 Aug 2001, in message <4aa34c5514sbellon at sbellon.de>,
Stefan Bellon <sbellon at sbellon.de> wrote:

> Tony van der Hoff <tony at mk-net.demon.co.uk> wrote:
> > On 1 Aug 2001, in message <4aa335c683sbellon at sbellon.de>,
> > Stefan Bellon <sbellon at sbellon.de> wrote:
> 
> [snip]
> 
> > > Yes, but I thought it could be an issue with wimp_set_extent().
> > > 
> > Well, the OSLib call works fine; I use it quite a lot...
> 
> Hm, do you change the xeig/yeig values of the screen modes you're using
> while windows are open?
> 
well, no...

> > > Ok, perhaps I was not specific enough. In a mode change from xeig
> > > == 1 to xeig == 2 for example, everything works fine, i.e. the
> > > window appears exactly the same size. But on a mode change from
> > > xeig == 1 to xeig == 0 or from xeig == 2 to xeig == 1, the window's
> > > xsize is double the size, thus leaving half of the window
> > > undefined. The image is in the left half and in the right half,
> > > there's garbage (if you move the window around).
> > >
> > Ah, I see. Try reversing the calls to wimp_set_extent and
> > wimp_open_window... Oh, and I don't think you need the
> > wimp_close_window.
> 
> Didn't change anything. :-/
> 
> The really funny thing is the following: If I leave out the call to
> wimp_set_extent(), then switching from xeig == 0 to xeig == 1 or from
> xeig == 1 to xeig == 2 goes wrong as well. When calling
> wimp_set_extent(), then *this* direction works, but the other way still
> doesn't work.
> 
> I really don't see the problem.
>
As I see it, and why I made that suggestion, is that the Wimp ignores
Wimp_SetExtent without faulting it if the resulting extent is smaller than
the visible area. Which is why, I believe, it works one way, but not the
other. So, the next thing to try is to make the extent slightly bigger than
the visible; it may be that one's inclusive, but the other isn't.

> Is there any WIMP and OSLib guru out there who would like to take a
> look at my code (only a very few KB)?
> 
Yes, post it to me (not the list).

-- 
Tony van der Hoff         | MailTo:tony at mk-net.demon.co.uk
                          | MailTo:avanderhoff at iee.org
Buckinghamshire, England  | http:www.mk-net.demon.co.uk



More information about the oslib-user mailing list