Re: [AD] ex_resize2

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2008-09-03, Elias Pschernig <elias@xxxxxxxxxx> wrote:
> On Wed, 2008-09-03 at 21:43 +1000, Peter Wang wrote:
> > I just added the example ex_resize2.  I saw a couple of bugs.
> > 
> > 1. With the OpenGL drivers (only?), the backbuffer bitmap's width and
> > height is not updated when the window is resized.  This is the source of
> > the problem you see when the window is enlarged: al_draw_scaled_bitmap()
> > clips the image to the _original_ size of the window.
> > 
> > 2. When you make the window smaller, I'm not sure what's going on.
> > (0,0) no longer seems to be at the bottom left of the window.
> > Something to do with the setup_gl() function?
> > 
> 
> I added the missing call to resize the backbuffer - does it work now?

Yes, thanks!  That fixed both problems.

Peter





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/