DirectFB - Home of the pragmatist Roadmap

[directfb-dev] Re: [PATCH] DirectFBGL window resize + freeglut port
Mailing List archive

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

[directfb-dev] Re: [PATCH] DirectFBGL window resize + freeglut port

On Tue, Sep 09, 2003 at 05:18:14PM +0200, Denis Oliver Kropp wrote:
> Quoting Ville Syrjälä (
> > I have attached two patches that should allow resizing of GL windows. One
> > patch is for DirectFBGL and the other is for Mesa.
> > 
> > I reset the drawable size and cliprect coordinates in set_drawable_flag().
> Nice, commit that ;)


> > The Mesa patch will make sure that Mesa resets the viewport according to
> > the new drawable size.
> I'm not sure if that's right, shouldn't the application define the viewport?

It probably should :) I just added this so that I could get df_gears scale
with the window.
According to glXMakeCurrent() man page the viewport should be set the on
first call and subsequent calls should have no effect on it so it would
appear this patch is crap...

> > Apart from considerable flashing during resizing seems to work fine. I'm
> > not sure what to do about the flashing...
> You do resizing using the wm hack, don't you?


> It always flashes because 1) there's no synchronization between resizing
> and flipping and 2) there are two resizes immediately after each other
> (one for each axis).
> Resizing via application is much better because 1) the application can make
> sure that the window content is correct before the next flip would occur,
> 2) mouse movements can be compressed causing a single resize only.


Ville Syrjälä

Info:  To unsubscribe send a mail to with
"unsubscribe directfb-dev" as subject.

Home | Main Index | Thread Index / Development / Old Archives