Martin Gagnon(deleted)
|
Photon drawing on 6.4 vs 6.3.x
|
Martin Gagnon(deleted)
02/13/2009 7:49 AM
post22186
|
Photon drawing on 6.4 vs 6.3.x
Hi all.
We use QNX/Photon since a while on normal PC computer and we start to move from 6.3 to 6.4 for some newer project. Most
of the programs without code modification and even without re-compiling still work no problem. Exept some program that
do drawing, e.g. that use PtRaw or PtImage widget.
Like if we want to implement a kind of Oscilloscope inside a PtRaw and we have to refresh the drawing every few
millisecond using an offscreen context and redraw completly from a PtTimer, it draw properly on QNX 6.3 (even in 6.21
before). But when trying it on QNX 6.4 (after recompiling or not). the drawing is offset and it seems not seems to be a
consistent offset, it's depend on the program. I have the feeling that it's depend what widget was on focus or was draw
the last. When I force a redraw switching workspace back and forth, it's appear on the right place, but get offset again
later after doing any interaction with the GUI.
So after this observation, I tried to convert the program to draw only from the DrawFunction of the PtRAw and to force a
refresh by calling PtDamageWidget on the PtRaw from the PtTimer, and that way it works. But Not all our program are
easy to convert that way. But anyway, I think it should work as on 6.3.
And I guess we are not alone on that situation, I've notice the same problem on GVim compiled with FEAT_GUI_PHOTON. I
tried an old version that I'm was using before on 6.3 and I also try to recompile the latest version from Vim CVS and I
saw the same problem.
Someone saw this problem, is there a work around or is it plan to be fixed on next release ?
--
Martin
|
|
|