VirtualBox

Changeset 85244 in vbox for trunk/src/VBox/Main/src-all


Ignore:
Timestamp:
Jul 11, 2020 11:07:06 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
139221
Message:

Main/DisplayPNGUtil.cpp: Signed/unsigned conversion issues. bugref:9790

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-all/DisplayPNGUtil.cpp

    r85121 r85244  
    107107        if (pu8Bitmap)
    108108        {
    109             uint8_t *dst = pu8Bitmap;
    110             uint8_t *src = pu8Data;
    111             int dstW = cxBitmap;
    112             int dstH = cyBitmap;
    113             int srcW = cx;
    114             int srcH = cy;
    115             int iDeltaLine = cx * 4;
    116 
    117             BitmapScale32 (dst,
    118                            dstW, dstH,
    119                            src,
    120                            iDeltaLine,
    121                            srcW, srcH);
     109            BitmapScale32(pu8Bitmap /*dst*/,
     110                          (int)cxBitmap, (int)cyBitmap,
     111                          pu8Data /*src*/,
     112                          (int)cx * 4,
     113                          (int)cx, (int)cy);
    122114        }
    123115        else
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette