backend interface: prepare is optional

Also remove xrender's prepare since it overwrite part of the screen
outside the damage region, causing rendering problems.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2019-03-05 20:27:03 +00:00
parent de30ef14ae
commit c387a266dc
3 changed files with 3 additions and 16 deletions

View File

@@ -67,8 +67,8 @@ struct backend_operations {
/// Usually the backend should clear the buffer, or paint a background
/// on the buffer (usually the wallpaper).
///
/// Optional?
void (*prepare)(backend_t *backend_data, const region_t *reg_paint);
/// Optional
void (*prepare)(backend_t *backend_data, const region_t *reg_damage);
/**
* Paint the content of an image onto the (possibly buffered)