- Timestamp:
- Oct 16, 2007 2:16:43 PM (17 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp
r5132 r5329 1051 1051 } 1052 1052 1053 #ifdef Q_WS_MAC /* see VBoxQImageFrameBuffer::NotifyUpdate. */ 1053 #if !defined (Q_WS_WIN) && !defined (Q_WS_PM) 1054 /* see VBox[QImage|SDL]FrameBuffer::NotifyUpdate(). */ 1054 1055 case VBoxDefs::RepaintEventType: 1055 1056 { 1056 1057 VBoxRepaintEvent *re = (VBoxRepaintEvent *) e; 1057 viewport()->repaint (re->x(), re->y(), re->width(), re->height(), false); 1058 viewport()->repaint (re->x() - contentsX(), 1059 re->y() - contentsY(), 1060 re->width(), re->height(), false); 1058 1061 /*cconsole.GetDisplay().UpdateCompleted(); - the event was acked already */ 1059 1062 return true; 1060 1063 } 1061 #endif /* Q_WS_MAC */1064 #endif 1062 1065 1063 1066 case VBoxDefs::SetRegionEventType: -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFrameBuffer.cpp
r4255 r5329 301 301 BOOL *aFinished) 302 302 { 303 #ifdef Q_WS_MAC 304 /* we're not on the GUI thread and update() isn't thread safe on Qt 3.3.x 305 on the Mac (4.2.x is), so post the event instead. */ 303 #if !defined (Q_WS_WIN) && !defined (Q_WS_PM) 304 /* we're not on the GUI thread and update() isn't thread safe in Qt 3.3.x 305 on the Mac (4.2.x is), on Linux (didn't check Qt 4.x there) and 306 probably on other non-DOS platforms, so post the event instead. */ 306 307 QApplication::postEvent (mView, 307 308 new VBoxRepaintEvent (aX, aY, aW, aH)); 308 309 #else /* !Q_WS_MAC */ 309 #else 310 310 /* we're not on the GUI thread, so update() instead of repaint()! */ 311 311 mView->viewport()->update (aX - mView->contentsX(), 312 312 aY - mView->contentsY(), 313 313 aW, aH); 314 #endif /* !Q_WS_MAC */314 #endif 315 315 /* the update has been finished, return TRUE */ 316 316 *aFinished = TRUE; … … 481 481 BOOL *aFinished) 482 482 { 483 #if !defined (Q_WS_WIN) && !defined (Q_WS_PM) 484 /* we're not on the GUI thread and update() isn't thread safe in Qt 3.3.x 485 on the Mac (4.2.x is), on Linux (didn't check Qt 4.x there) and 486 probably on other non-DOS platforms, so post the event instead. */ 487 QApplication::postEvent (mView, 488 new VBoxRepaintEvent (aX, aY, aW, aH)); 489 #else 483 490 /* we're not on the GUI thread, so update() instead of repaint()! */ 484 491 mView->viewport()->update (aX - mView->contentsX(), 485 492 aY - mView->contentsY(), 486 493 aW, aH); 494 #endif 487 495 /* the update has been finished, return TRUE */ 488 496 *aFinished = TRUE;
Note:
See TracChangeset
for help on using the changeset viewer.