Wimp question
Stefan Bellon
sbellon at sbellon.de
Wed Aug 1 13:31:43 BST 2001
Tony van der Hoff <tony at mk-net.demon.co.uk> wrote:
[snipped description of my problem]
> 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().
> However, I'll try to help. You don't actually say what your problem
> is,
Erm, well, the first paragraph of my email described the problem:
> > Currently I'm displaying a JPEG in a simple window which works very
> > well. But on a mode change that modifies the xeig and/or yeig
> > values, the window is double or half the size in any or both
> > directions.
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).
> but it looks to me that you've forgotten that in win coords, the
> top left is 0,0, with the y coord going negative down the screen, so
> you should be doing:
> extent.y1 = 0;
> extent.y0 = -(1 << yeig) * height
This doesn't solve the problem, in fact, it doesn't change anything.
The behaviour is still the same.
Greetings,
Stefan.
--
Stefan Bellon * <mailto:sbellon at sbellon.de> * <http://www.sbellon.de/>
PGP 2.6 and GnuPG (OpenPGP) keys available from my home page
10,000 ants dressed as rice & robbed a Chinese restaurant
More information about the oslib-user
mailing list