mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
[PACKAGE] patch fbgrab
- compression level fix (#41)
This commit is contained in:
13
package/fbgrab/fbgrab-1.5.patch
Normal file
13
package/fbgrab/fbgrab-1.5.patch
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/fbgrab.c b/fbgrab.c
|
||||||
|
index 2abc08a..287cede 100644
|
||||||
|
--- a/fbgrab.c
|
||||||
|
+++ b/fbgrab.c
|
||||||
|
@@ -335,7 +335,7 @@ static void write_PNG(unsigned char *outbuffer, char *filename,
|
||||||
|
|
||||||
|
png_init_io(png_ptr, outfile);
|
||||||
|
|
||||||
|
- png_set_compression_level(png_ptr, Z_BEST_COMPRESSION);
|
||||||
|
+ png_set_compression_level(png_ptr, compression);
|
||||||
|
|
||||||
|
bit_depth = 8;
|
||||||
|
color_type = PNG_COLOR_TYPE_RGB_ALPHA;
|
Reference in New Issue
Block a user