forked from Mirrors/wine-wine
windowscodecs: Use BOOL type where appropriate.
parent
44b2fd269e
commit
0153a962f6
|
@ -773,13 +773,13 @@ typedef struct JpegEncoder {
|
||||||
struct jpeg_compress_struct cinfo;
|
struct jpeg_compress_struct cinfo;
|
||||||
struct jpeg_error_mgr jerr;
|
struct jpeg_error_mgr jerr;
|
||||||
struct jpeg_destination_mgr dest_mgr;
|
struct jpeg_destination_mgr dest_mgr;
|
||||||
int initialized;
|
BOOL initialized;
|
||||||
int frame_count;
|
int frame_count;
|
||||||
int frame_initialized;
|
BOOL frame_initialized;
|
||||||
int started_compress;
|
BOOL started_compress;
|
||||||
int lines_written;
|
int lines_written;
|
||||||
int frame_committed;
|
BOOL frame_committed;
|
||||||
int committed;
|
BOOL committed;
|
||||||
UINT width, height;
|
UINT width, height;
|
||||||
double xres, yres;
|
double xres, yres;
|
||||||
const jpeg_compress_format *format;
|
const jpeg_compress_format *format;
|
||||||
|
@ -1050,7 +1050,7 @@ static HRESULT WINAPI JpegEncoder_Frame_WritePixels(IWICBitmapFrameEncode *iface
|
||||||
|
|
||||||
pjpeg_start_compress(&This->cinfo, TRUE);
|
pjpeg_start_compress(&This->cinfo, TRUE);
|
||||||
|
|
||||||
This->started_compress = 1;
|
This->started_compress = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
row_size = This->format->bpp / 8 * This->width;
|
row_size = This->format->bpp / 8 * This->width;
|
||||||
|
@ -1480,13 +1480,13 @@ HRESULT JpegEncoder_CreateInstance(IUnknown *pUnkOuter, REFIID iid, void** ppv)
|
||||||
This->IWICBitmapEncoder_iface.lpVtbl = &JpegEncoder_Vtbl;
|
This->IWICBitmapEncoder_iface.lpVtbl = &JpegEncoder_Vtbl;
|
||||||
This->IWICBitmapFrameEncode_iface.lpVtbl = &JpegEncoder_FrameVtbl;
|
This->IWICBitmapFrameEncode_iface.lpVtbl = &JpegEncoder_FrameVtbl;
|
||||||
This->ref = 1;
|
This->ref = 1;
|
||||||
This->initialized = 0;
|
This->initialized = FALSE;
|
||||||
This->frame_count = 0;
|
This->frame_count = 0;
|
||||||
This->frame_initialized = 0;
|
This->frame_initialized = FALSE;
|
||||||
This->started_compress = 0;
|
This->started_compress = FALSE;
|
||||||
This->lines_written = 0;
|
This->lines_written = 0;
|
||||||
This->frame_committed = 0;
|
This->frame_committed = FALSE;
|
||||||
This->committed = 0;
|
This->committed = FALSE;
|
||||||
This->width = This->height = 0;
|
This->width = This->height = 0;
|
||||||
This->xres = This->yres = 0.0;
|
This->xres = This->yres = 0.0;
|
||||||
This->format = NULL;
|
This->format = NULL;
|
||||||
|
|
Loading…
Reference in New Issue