Re: [AD] Two dumb little patches |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
Elias Pschernig wrote:
On Wed, 2005-04-13 at 10:30 -0700, Robert Ohannessian wrote:How about destroy_bitmap(screen) ?Yes, that sounds like a good idea. It would mean adding a "destroy" method to the bitmap vtable, and for screen, set it to one that resets the gfx mode.
Why? Just special case if(bmp == screen) in destroy bitmap, and if it's true, call set_gfx_mode(GFX_TEXT, 0, 0, 0, 0) and return. You can do a more "proper" implementation with 4.3 and display bitmaps.
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |