On 19 Nov 2002, at 20:49, Dilwyn Jones wrote:

> 
> Anyone have any experience of saving and restoring screen areas with
> Easyptr under GD2? Can it be made to work reliably or not?
> 
> I had a quick go and could get it to load (L_WSA) a mode 32 PIC file
> and display it (using WSARS) as long as the PIC file and the current
> screen mode were the same,

I don't know about Easyptr, but if it uses the underlying PI features, 
then this is correct - it saves and restores screen areas and 
expects them to be in the same screen mode when restoring as 
when saving.

> i.e. mode 32 pictures could only be displayed in mode 32, a mode 0 (QL
> 4 colour) pic could not be displayed in mode 32 for example, which was
> probably predictable.

yup.

> If anyone knows more about this, let me know to save me wasting too
> much time on something which can't be done reliably yet. (I'm trying
> to write a simple PIC and SCR graphics viewer for Launchpad using
> Easyptr).

No, that wouldn't really work with these OS (PI) calls, if the images 
to be displayed aren't of the same screen mode. You would need 
some kind of conversion program. I can't remember whether the scr 
format stores the screen format/mode with the file or not - if you 
need that info, I can find out.

> What I'm afraid of is a scenario like: I find it only works on QPC2
> for example as it's the only GD2 system I have to test it on at the
> moment!
If, again, it uses the underlying OS calls, then is should work on 
any machine as well as on QPC.

> It seems to work at first glance, but it's my first significant foray
> into Easyptr versus GD2, so any advice gratefully received!

I have always foun that GD2 doesn't really change anything for 
programs that aren't aware of it, so that shouldn't be too much of a 
problem.

Wolfgang

Reply via email to