Changeset 6798 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Feb 4, 2008 6:47:36 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/darwin/VBoxUtils-darwin.cpp
r6721 r6798 110 110 transImage.fill (qRgba (0, 0, 0, 0)); 111 111 transImage.setAlphaBuffer (true); 112 QPixmap back (transImage); 112 QPixmap back (transImage); 113 113 114 114 /* load the badge */ … … 136 136 * @param aStateImage an optional state overlay image to add at the center of the icon 137 137 */ 138 void DarwinUpdateDockPreview (CGImageRef aVMImage, CGImageRef aOverlayImage, CGImageRef aStateImage )138 void DarwinUpdateDockPreview (CGImageRef aVMImage, CGImageRef aOverlayImage, CGImageRef aStateImage /*= NULL*/) 139 139 { 140 140 Assert (aVMImage); … … 187 187 if (aStateImage) 188 188 { 189 CGRect stateRect = CGRectMake ((targetWidth - CGImageGetWidth (aStateImage)) / 2.0, 190 (targetHeight - CGImageGetHeight (aStateImage)) / 2.0, 191 CGImageGetWidth (aStateImage), 189 CGRect stateRect = CGRectMake ((targetWidth - CGImageGetWidth (aStateImage)) / 2.0, 190 (targetHeight - CGImageGetHeight (aStateImage)) / 2.0, 191 CGImageGetWidth (aStateImage), 192 192 CGImageGetHeight (aStateImage)); 193 193 CGContextDrawImage (context, stateRect, aStateImage); … … 196 196 if (aOverlayImage) 197 197 { 198 CGRect overlayRect = CGRectMake (targetWidth - CGImageGetWidth (aOverlayImage), 199 0, 200 CGImageGetWidth (aOverlayImage), 198 CGRect overlayRect = CGRectMake (targetWidth - CGImageGetWidth (aOverlayImage), 199 0, 200 CGImageGetWidth (aOverlayImage), 201 201 CGImageGetHeight (aOverlayImage)); 202 202 CGContextDrawImage (context, overlayRect, aOverlayImage);
Note:
See TracChangeset
for help on using the changeset viewer.