Wimp question
Tony van der Hoff
tony at mk-net.demon.co.uk
Wed Aug 1 14:10:19 BST 2001
On 1 Aug 2001, in message <4aa335c683sbellon at sbellon.de>,
Stefan Bellon <sbellon at sbellon.de> wrote:
> Tony van der Hoff <tony at mk-net.demon.co.uk> wrote:
>
> [snipped description of my problem]
Unsnipped ;-)
> wimp_close_window(mainwin);
> wopen->visible.x1 = wopen->visible.x0 + (1 << xeig) * width;
> wopen->visible.y1 = wopen->visible.y0 + (1 << yeig) * height;
> extent.x0 = 0;
> extent.y0 = 0;
> extent.x1 = (1 << xeig) * width;
> extent.y1 = (1 << yeig) * height;
> wimp_set_extent(mainwin, &extent);
> wimp_open_window(wopen);
>
> > Did you mean to send this to the OSLib list? I would have thought
> > c.s.a.p. would be a better forum.
>
> 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...
>
> 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.
>
--
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