Refactor code in wxQuantize() for MSVC to avoid crash

VC++ compilers (at least up to VS 2015) seem to generate incorrect code for the dithering code taken from libjpeg (pass2_fs_dither() function), where it is known to create problems too.
Refactor the code to avoid invalid optimization in this function and turn optimization on.

Closes #17764.
This commit is contained in:
Artur Wieczorek
2017-01-10 21:30:43 +01:00
parent 92f80a18c6
commit 6cef4eaa11
2 changed files with 22 additions and 14 deletions

View File

@@ -119,6 +119,7 @@ All (GUI):
- Add wxDataViewRenderer::GetAccessibleDescription().
- Improve wxImage::Scale() handling of pixels with alpha channel (Tim Kosse).
- Fix parsing of RGBA strings in wxColour (Laurent Poujoulat).
- Refactor code in wxQuantize() for MSVC to avoid crash.
wxGTK: