"Dimitrie O. Paun" dpaun@rogers.com writes:
Yeah, and on second thought even this "mem_area" is too general because they are build specifically for DIBs. I should rename them dib_area, and instead of "void *data", I should have "X_PHYSBITMAP *physBitmap".
But I'd like to hear from AJ is this is OK first :)
Sure, the general idea is fine. You actually don't need a mem_area structure at all, you can store that directly in the phys bitmap. Also it would be nice to only set the handler when a DIB is allocated, not at startup.