Commits

Anonymous committed 40bec8f

#i10000# Cast rWriteAcc->GetBestPaletteIndex to BYTE.

Comments (0)

Files changed (1)

vcl/source/helper/canvastools.cxx

                             {
                                 const rendering::ARGBColor& rColor=aARGBColors[x];
                                 rWriteAcc->SetPixel( aRect.Y1, x,
-                                                     rWriteAcc->GetBestPaletteIndex(
+                                                     (BYTE)rWriteAcc->GetBestPaletteIndex(
                                                          BitmapColor( toByteColor(rColor.Red),
                                                                       toByteColor(rColor.Green),
                                                                       toByteColor(rColor.Blue))) );
                             {
                                 const rendering::RGBColor& rColor=aRGBColors[x];
                                 rWriteAcc->SetPixel( aRect.Y1, x,
-                                                     rWriteAcc->GetBestPaletteIndex(
+                                                     (BYTE)rWriteAcc->GetBestPaletteIndex(
                                                          BitmapColor( toByteColor(rColor.Red),
                                                                       toByteColor(rColor.Green),
                                                                       toByteColor(rColor.Blue))) );