Wimp question
Stefan Bellon
sbellon at sbellon.de
Wed Aug 1 11:08:47 BST 2001
Hi!
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.
Therefore whenever I get message_MODE_CHANGE I do the following:
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);
Where mainwin is the handle of the window (type wimp_w), extent is of
type os_box and wopen is a pointer to a wimp_open structure.
What am I missing?
TIA.
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
Ceterum censeo Microsoft esse delendam
More information about the oslib-user
mailing list