X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a8ff046ba980a89f11125477e736cf235ebd7186..dd145136b6ee88f6d5a9e273f9c39679989bc300:/src/msw/dib.cpp diff --git a/src/msw/dib.cpp b/src/msw/dib.cpp index f79d16a113..00ed0789cc 100644 --- a/src/msw/dib.cpp +++ b/src/msw/dib.cpp @@ -789,9 +789,9 @@ wxImage wxDIB::ConvertToImage() const *alpha++ = a; if ( a > 0 ) { - dst[0] = (dst[0] * 255 - 127) / a; - dst[1] = (dst[1] * 255 - 127) / a; - dst[2] = (dst[2] * 255 - 127) / a; + dst[0] = (dst[0] * 255) / a; + dst[1] = (dst[1] * 255) / a; + dst[2] = (dst[2] * 255) / a; } }