1
0
Fork 0
forked from wry/wry

autocommit 2022-03-29 15:40:59 CEST

This commit is contained in:
Julian Orth 2022-03-29 15:40:59 +02:00
parent 6ebf731aea
commit 9842264fad
39 changed files with 121 additions and 92 deletions

View file

@ -329,7 +329,7 @@ impl XBackendData {
modifier: INVALID_MODIFIER,
};
let mut images = [None, None];
for i in 0..2 {
for image in &mut images {
let bo = self
.gbm
.create_bo(width, height, &format, GBM_BO_USE_RENDERING)?;
@ -358,7 +358,7 @@ impl XBackendData {
}
pfb.pixmap
};
images[i] = Some(XImage {
*image = Some(XImage {
pixmap: Cell::new(pixmap),
fb: CloneCell::new(fb),
idle: Cell::new(true),