pmaports/main/directfb/0003-remove-set-gamma-ramp.patch
clayton craft ed0caeeaef Add osk-sdl, directfb, sdl2, tslib (#419)
The sdl2 package is forked from upstream Alpine and:
1) adds directfb video support
2) adds a patch to work around a compile issue when directfb is enabled
2017-08-19 16:50:59 +00:00

23 lines
622 B
Diff

--- 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;
}