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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user