Re: [AD] sub bitmap patch

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


> Try creating a sub bitmap with negative offsets (eg overlapping with the
> top left corner of the parent bitmap) and you'll see what the bug is.

What's exactly the problem ?
The following program works fine here (DJGPP):

#include <allegro.h>


int main(void)
{
   BITMAP *sub;

   allegro_init();

   if (set_gfx_mode(GFX_AUTODETECT, 640, 480, 0, 0) != 0)
      return 1;

   install_keyboard();

   sub = create_sub_bitmap(screen, -10, -10, 100, 100);
   rectfill(sub, 0, 0, sub->w-1, sub->h-1, makecol(255, 0, 255));

   readkey();

   set_gfx_mode(GFX_TEXT, 0, 0, 0, 0);

   return 0;
}
END_OF_MAIN()

--
Eric Botcazou
ebotcazou@xxxxxxxxxx



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