From 9a679df67de32f77c2bc3846b720b1c5e3bab06f Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Fri, 25 Feb 2005 17:25:23 +0000 Subject: [PATCH] Use wxIMAGE_OPTION_QUALITY git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/imagjpeg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/imagjpeg.cpp b/src/common/imagjpeg.cpp index 42b995aae9..fed0d78859 100644 --- a/src/common/imagjpeg.cpp +++ b/src/common/imagjpeg.cpp @@ -356,8 +356,8 @@ bool wxJPEGHandler::SaveFile( wxImage *image, wxOutputStream& stream, bool verbo // 'Quality' is a number between 0 (terrible) and 100 (very good). // The default (in jcparam.c, jpeg_set_defaults) is 75, // and force_baseline is TRUE. - if (image->HasOption(wxT("quality"))) - jpeg_set_quality(&cinfo, image->GetOptionInt(wxT("quality")), TRUE); + if (image->HasOption(wxIMAGE_OPTION_QUALITY)) + jpeg_set_quality(&cinfo, image->GetOptionInt(wxIMAGE_OPTION_QUALITY), TRUE); // set the resolution fields in the output file UINT16 resX, -- 2.45.2