mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-27 01:44:41 +03:00
ply-image: Adds hack for framebuffer flipping...
This is more specifically for msm devices. Let's hope it won't cause issues down the line, otherwise we'll have to make it configurable.
This commit is contained in:
parent
4e5b870ec2
commit
56458a477c
22
overlay/ply-image/99_msm-fb.diff
Normal file
22
overlay/ply-image/99_msm-fb.diff
Normal file
@ -0,0 +1,22 @@
|
||||
diff --git a/src/ply-frame-buffer.c b/src/ply-frame-buffer.c
|
||||
index 1160c85..5904331 100644
|
||||
--- a/src/ply-frame-buffer.c
|
||||
+++ b/src/ply-frame-buffer.c
|
||||
@@ -596,6 +596,9 @@ bool ply_frame_buffer_fill(ply_frame_buffer_t *buffer,
|
||||
}
|
||||
}
|
||||
|
||||
+ struct fb_var_screeninfo variable_screen_info;
|
||||
+ ioctl(buffer->device_fd, FBIOPAN_DISPLAY, &variable_screen_info);
|
||||
+
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -659,4 +662,7 @@ void ply_frame_buffer_clear(ply_frame_buffer_t *buffer,
|
||||
default:
|
||||
assert(0);
|
||||
}
|
||||
+
|
||||
+ struct fb_var_screeninfo variable_screen_info;
|
||||
+ ioctl(buffer->device_fd, FBIOPAN_DISPLAY, &variable_screen_info);
|
||||
}
|
@ -15,6 +15,7 @@ stdenv.mkDerivation {
|
||||
|
||||
patches = [
|
||||
./99_additional_debug.diff
|
||||
./99_msm-fb.diff
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
Loading…
Reference in New Issue
Block a user