[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Elias Pschernig a écrit :
> Then, as Peter said, there's the problem if we can assume that lines are
> continuous. If we make this change, then we should specify that
> is_memory_bitmap(bmp) means that there can be no line gaps (and also
> check that no other memory bitmaps are currently created by Allegro).
Make that rather "is_memory_bitmap(bmp) && !is_sub_bitmap(bmp)". Sub-bitmaps
will have gaps, so the trick unfortunately won't work with them.
> Oh, and do you think something similiar can be done for clear_to_color?
> That's what really would bring an improvement to actual programs, since
> normally you need to clear to some color, not just 0.
What would really be an improvement is if memcpy was faster than blit... who
knows :-)
--
Julien Cugnière