Changeset 7412 in vbox
- Timestamp:
- Mar 10, 2008 3:14:36 PM (17 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox4/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleWnd.cpp
r7398 r7412 598 598 # endif 599 599 /* prepare the dock images */ 600 dockImgStatePaused = ::DarwinCreateDockBadge (" state_paused_16px.png");601 dockImgStateSaving = ::DarwinCreateDockBadge (" state_saving_16px.png");602 dockImgStateRestoring = ::DarwinCreateDockBadge (" state_restoring_16px.png");603 dockImgBack100x75 = ::DarwinCreateDockBadge (" dock_1.png");600 dockImgStatePaused = ::DarwinCreateDockBadge (":/state_paused_16px.png"); 601 dockImgStateSaving = ::DarwinCreateDockBadge (":/state_saving_16px.png"); 602 dockImgStateRestoring = ::DarwinCreateDockBadge (":/state_restoring_16px.png"); 603 dockImgBack100x75 = ::DarwinCreateDockBadge (":/dock_1.png"); 604 604 SetApplicationDockTileImage (dockImgOS); 605 605 #endif -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxFBQuartz2D.cpp
r7220 r7412 178 178 179 179 /* Create the context to draw on */ 180 WindowPtr window = static_cast <WindowPtr> (mView->viewport()->handle());181 SetPortWindowPort (window);182 CGContextRef ctx ;183 QDBeginCGContext (GetWindowPort (window), &ctx);180 // WindowPtr window = static_cast <WindowPtr> (mView->viewport()->handle()); 181 // SetPortWindowPort (window); 182 CGContextRef ctx = static_cast<CGContext *> (mView->viewport()->macCGHandle()); 183 // QDBeginCGContext (GetWindowPort (window), &ctx); 184 184 /* We handle the seamless mode as a special case. */ 185 185 if (static_cast <VBoxConsoleWnd*> (pMain)->isTrueSeamless()) … … 194 194 /* Clear the background (Make the rect fully transparent) */ 195 195 Rect winRect; 196 GetPortBounds (GetWindowPort (window), &winRect);196 // GetPortBounds (GetWindowPort (window), &winRect); 197 197 CGContextClearRect (ctx, CGRectMake (winRect.left, winRect.top, winRect.right - winRect.left, winRect.bottom - winRect.top)); 198 198 /* Grab the current visible region. */ … … 237 237 CGImageRef subImage = CGImageCreateWithImageInRect (mImage, QRectToCGRect (is)); 238 238 Assert (subImage); 239 /* Flip the y-coord */ 240 CGContextScaleCTM (ctx, 1.0, -1.0); 241 CGContextTranslateCTM (ctx, Q2DViewRect.x(), -Q2DViewRect.height() - Q2DViewRect.y()); 239 242 240 243 /* Ok, for more performance we set a clipping path of the 241 244 * regions given by this paint event. */ 242 245 Q3MemArray <QRect> a = pe->region().rects(); 243 if (a.size() > 0) 246 // if (a.size() > 0) 247 if (0) 244 248 { 245 249 /* Save state for display fliping */ 246 250 CGContextSaveGState (ctx); 247 251 /* Flip the y-coord */ 248 CGContextScaleCTM (ctx, 1.0, -1.0);249 CGContextTranslateCTM (ctx, Q2DViewRect.x(), -Q2DViewRect.height() - Q2DViewRect.y());250 252 CGContextBeginPath (ctx); 251 253 /* Add all region rects to the current context as path components */ … … 264 266 CGContextDrawImage (ctx, QRectToCGRect (cr), subImage); 265 267 } 266 QDEndCGContext (GetWindowPort (window), &ctx);268 // QDEndCGContext (GetWindowPort (window), &ctx); 267 269 } 268 270 /* Save for later shadow stuff ... */ -
trunk/src/VBox/Frontends/VirtualBox4/src/darwin/VBoxUtils-darwin.cpp
r7282 r7412 20 20 #include "VBoxUtils.h" 21 21 #include "VBoxFrameBuffer.h" 22 #include <qimage.h>23 #include <qpixmap.h>24 22 25 23 #include <iprt/assert.h> 26 24 #include <iprt/mem.h> 27 25 26 /* Qt includes */ 27 #include <QImage> 28 #include <QPixmap> 28 29 29 30 /**
Note:
See TracChangeset
for help on using the changeset viewer.