Changeset 31279 in vbox for trunk/src/VBox/Main/DisplayImpl.cpp
- Timestamp:
- Aug 2, 2010 10:33:59 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/DisplayImpl.cpp
r31195 r31279 181 181 uint8_t *dst = pu8Thumbnail; 182 182 uint8_t *src = pu8Data; 183 int dstX = 0;184 int dstY = 0;185 int srcX = 0;186 int srcY = 0;187 183 int dstW = cxThumbnail; 188 184 int dstH = cyThumbnail; 189 185 int srcW = cx; 190 186 int srcH = cy; 191 gdImageCopyResampled (dst, 192 src, 193 dstX, dstY, 194 srcX, srcY, 195 dstW, dstH, srcW, srcH); 187 int iDeltaLine = cx * 4; 188 189 BitmapScale32 (dst, 190 dstW, dstH, 191 src, 192 iDeltaLine, 193 srcW, srcH); 196 194 197 195 *ppu8Thumbnail = pu8Thumbnail; … … 291 289 uint8_t *dst = pu8Bitmap; 292 290 uint8_t *src = pu8Data; 293 int dstX = 0;294 int dstY = 0;295 int srcX = 0;296 int srcY = 0;297 291 int dstW = cxBitmap; 298 292 int dstH = cyBitmap; 299 293 int srcW = cx; 300 294 int srcH = cy; 301 gdImageCopyResampled (dst, 302 src, 303 dstX, dstY, 304 srcX, srcY, 305 dstW, dstH, srcW, srcH); 295 int iDeltaLine = cx * 4; 296 297 BitmapScale32 (dst, 298 dstW, dstH, 299 src, 300 iDeltaLine, 301 srcW, srcH); 306 302 } 307 303 else … … 2469 2465 uint8_t *dst = address; 2470 2466 uint8_t *src = pu8Data; 2471 int dstX = 0;2472 int dstY = 0;2473 int srcX = 0;2474 int srcY = 0;2475 2467 int dstW = width; 2476 2468 int dstH = height; 2477 2469 int srcW = cx; 2478 2470 int srcH = cy; 2479 gdImageCopyResampled (dst, 2480 src, 2481 dstX, dstY, 2482 srcX, srcY, 2483 dstW, dstH, srcW, srcH); 2471 int iDeltaLine = cx * 4; 2472 2473 BitmapScale32 (dst, 2474 dstW, dstH, 2475 src, 2476 iDeltaLine, 2477 srcW, srcH); 2484 2478 } 2485 2479
Note:
See TracChangeset
for help on using the changeset viewer.