config: make the blend space configurable
This commit is contained in:
parent
991b212120
commit
39c770f6e2
20 changed files with 257 additions and 15 deletions
|
|
@ -13,6 +13,7 @@ use {
|
|||
AcquireSync, BufferResv, GfxApiOpt, GfxRenderPass, GfxTexture, ReleaseSync, SyncFile,
|
||||
create_render_pass,
|
||||
},
|
||||
ifs::wl_output::BlendSpace,
|
||||
rect::Region,
|
||||
theme::Color,
|
||||
time::Time,
|
||||
|
|
@ -201,7 +202,11 @@ impl MetalConnector {
|
|||
let buffer = &buffers[next_buffer_idx];
|
||||
|
||||
let cd = node.global.color_description.get();
|
||||
let blend_cd = self.state.color_manager.srgb_gamma22();
|
||||
let linear_cd = node.global.linear_color_description.get();
|
||||
let blend_cd = match node.global.persistent.blend_space.get() {
|
||||
BlendSpace::Linear => &linear_cd,
|
||||
BlendSpace::Srgb => self.state.color_manager.srgb_gamma22(),
|
||||
};
|
||||
|
||||
if self.has_damage.get() > 0 || self.cursor_damage.get() {
|
||||
node.schedule.commit_cursor();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue