aboutsummaryrefslogtreecommitdiffstats
path: root/community/directfb/0003-remove-set-gamma-ramp.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/directfb/0003-remove-set-gamma-ramp.patch')
-rw-r--r--community/directfb/0003-remove-set-gamma-ramp.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/community/directfb/0003-remove-set-gamma-ramp.patch b/community/directfb/0003-remove-set-gamma-ramp.patch
new file mode 100644
index 00000000000..652c5a16835
--- /dev/null
+++ b/community/directfb/0003-remove-set-gamma-ramp.patch
@@ -0,0 +1,23 @@
+--- a/systems/fbdev/fbdev.c
++++ b/systems/fbdev/fbdev.c
+@@ -2327,14 +2327,18 @@ dfb_fbdev_set_gamma_ramp( DFBSurfacePixelFormat format )
+ for (i = 0; i < blue_size; i++)
+ cmap->blue[i] |= cmap->blue[i] << 8;
+ }
+-
++ /*
++ * Commenting out section setting gamma ramp
++ * per: http://directfb-users.directfb.narkive.com/fUkXSRmm/hello
++ */
++ /*
+ if (FBDEV_IOCTL( FBIOPUTCMAP, cmap ) < 0) {
+ D_PERROR( "DirectFB/FBDev: "
+ "Could not set gamma ramp" );
+
+ return errno2result(errno);
+ }
+-
++ */
+ return DFB_OK;
+ }
+