Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 355051
Collapse All | Expand All

(-)VirtualBox-4.0.4_OSE/src/VBox/Main/src-all/DisplayPNGUtil.cpp (-3 / +3 lines)
Lines 152-158 int DisplayMakePNG(uint8_t *pu8Data, uin Link Here
152
                        ctx.rc = VINF_SUCCESS;
152
                        ctx.rc = VINF_SUCCESS;
153
153
154
                        png_set_write_fn(png_ptr,
154
                        png_set_write_fn(png_ptr,
155
                                         (voidp)&ctx,
155
                                         (png_voidp)&ctx,
156
                                         png_write_data_fn,
156
                                         png_write_data_fn,
157
                                         png_output_flush_fn);
157
                                         png_output_flush_fn);
158
158
Lines 173-180 int DisplayMakePNG(uint8_t *pu8Data, uin Link Here
173
                        png_set_filler(png_ptr, 0, PNG_FILLER_AFTER);
173
                        png_set_filler(png_ptr, 0, PNG_FILLER_AFTER);
174
                        png_set_bgr(png_ptr);
174
                        png_set_bgr(png_ptr);
175
175
176
                        if (info_ptr->valid & PNG_INFO_IDAT)
176
                        if (png_get_valid(png_ptr, info_ptr, PNG_INFO_IDAT))
177
                            png_write_image(png_ptr, info_ptr->row_pointers);
177
                            png_write_image(png_ptr, png_get_rows(png_ptr,info_ptr));
178
178
179
                        png_write_end(png_ptr, info_ptr);
179
                        png_write_end(png_ptr, info_ptr);
180
180

Return to bug 355051