Re: [AD] X patch update

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


Evert Glebbeek wrote:
One idditional question I forgot to ask yesterday: I saw that you call XLOCK/XUNLOCK whenever a bitmap is acquired/released in X, independent of what bitmap it is. But it should only be nescessary for video bitmaps, shouldn't it?

Actually it should only happen for video bitmaps. The _xwin_lock/_xwin_unlock calls only go into the vtable for the screen bitmap via _xwin_replace_vtable, which I assume is copied over for every other video bitmap. Memory bitmaps should be unaffected.

As a test, you could write a program that outputs the address of some_memory_bmp->vtable->acquire after setting a video mode. Unfortunately I won't have the time to test today.

- Kitty Cat




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