From: | Sensei |
Date: | 21 Jul 2000 at 05:48:53 |
Subject: | Re: BOOPSI freeze ups |
Czesc Sensei!
Dnia 21-Lip-00, Sensei napisa�:
> BTW: I had similar problem (ie. deadlock after window
>resize) with my own gadgetclass and I found that you cannot use
>InstallClipRect() on msg->gpr_RPort or even on RastPort obtained via
>ObtainGIRPort()! This bug was fixed in OS v3.5 (or OS v3.1 I don't remember
>exactly).
ehhh... I forgot to tell you how I did workaround for this bug... It's simple:
I created temporary bitmap and rastport with layer and layerinfo (it could be
done either in OM_NEW and GM_RENDER - you should check if size of visible area
of gadget was changed - be _very_ careful while calculating size, you must
support right/bottom relative tags/flags as well, especjally when you're
writing gadgets that will be placed in SYS:Classes/Gadgets/ as I did), and
gadget renders graphics to this rastport, then bitmap is blitted to
msg->gpr_RPort. It needs more memory but it looks better (you don't see how
lines appears on screen ;).
Regards!
Przemyslaw 'SENSEI' Gruchala
code/gfx2d/gfx3d/webmaster
Amiga 1200
Apollo 1240/33 MHz, 18 MB RAM, BTC 33.6 bps
HDD 3.2 GB, HDD 520 MB, CD x12
-------------------------------------------------------------
250 tys. produktow w 200 sklepach - zawsze promocje - Zakupy
http://zakupy.onet.pl
-------------------------------------------------------------
------------------------------------------------------------------------
It's the End Of The Line for My Shipping Broker.
http://click.egroups.com/1/5175/1/_/451227/_/964154957/
------------------------------------------------------------------------