fenfire-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fenfire-dev] Proposed change to VobCoorder.RenderInfo


From: Matti Katila
Subject: Re: [Fenfire-dev] Proposed change to VobCoorder.RenderInfo
Date: Wed, 7 Jul 2004 14:11:39 +0300 (EEST)

On Sat, 3 Jul 2004, Benja Fallenstein wrote:
> Before, to get the rectangle to draw itself into, a vob would have to
> use the following pattern:
> 
> |    Rectangle rect = new Rectangle();
> |
> |    public void render(...Vob.RenderInfo info1...) {
> |        info1.getExtRect(rect);
> |        // draw something using rect.x, rect.y,
> |        // rect.width, rect.height
> |    }
> 
> With the proposed change, this can change to:
> 
> |    public void render(...Vob.RenderInfo info1...) {
> |        // draw something using info1.x, info1.y,
> |        // info1.width, info1.height
> |    }


Just one thing. It may use more memory and efficiency resources because of 
the change? Any Java professionalists here? We shall write efficiently 
even it may look horrible because this *is* the time critical render 
method.


   -Matti





reply via email to

[Prev in Thread] Current Thread [Next in Thread]