Re: [AD] Logic in al_load_bitmap

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


I think you're right, it should be:
Index: src/bitmap_new.c
===================================================================
--- src/bitmap_new.c (revision 10045)
+++ src/bitmap_new.c (working copy)
@@ -253,7 +253,7 @@
bitmap = _al_load_memory_bitmap(filename);

/* If it's a display bitmap */
- if (!(al_get_new_bitmap_flags() & ALLEGRO_MEMORY_BITMAP) && bitmap) {
+ if ((bitmap!=NULL) && ((bitmap->flags & ALLEGRO_MEMORY_BITMAP) == 0)) {
bitmap->vt->upload_bitmap(bitmap, 0, 0, bitmap->w, bitmap->h);
}


On Fri, Feb 29, 2008 at 2:18 AM, Trent Gamblin <trent@xxxxxxxxxx> wrote:
> On Thu, February 28, 2008 4:08 pm, Peter Hull said:
> > Sorry, wrong patch!
> >
> > Pete
>
> This one looks like it should have & instead of |.
>
>
> Trent
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> --
> https://lists.sourceforge.net/lists/listinfo/alleg-developers
>




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