vbox的更動 3793 路徑 trunk/src/VBox/Devices/VMMDev
- 時間撮記:
- 2007-7-23 下午04:02:49 (17 年 以前)
- 位置:
- trunk/src/VBox/Devices/VMMDev
- 檔案:
-
- 修改 2 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Devices/VMMDev/VBoxDev.cpp
r3786 r3793 1166 1166 VMMDevSeamlessChangeRequest *seamlessChangeRequest = (VMMDevSeamlessChangeRequest*)requestHeader; 1167 1167 /* just pass on the information */ 1168 Log(("VMMDev: returning seamless change request mode=%d\n", pData-> SeamlessMode));1169 switch(pData->SeamlessMode)1170 {1171 case PDM_SEAMLESS_MODE_DISABLED:1168 Log(("VMMDev: returning seamless change request mode=%d\n", pData->fSeamlessEnabled)); 1169 if (pData->fSeamlessEnabled) 1170 seamlessChangeRequest->mode = VMMDev_Seamless_Visible_Region; 1171 else 1172 1172 seamlessChangeRequest->mode = VMMDev_Seamless_Disabled; 1173 break;1174 case PDM_SEAMLESS_MODE_VISIBLE_REGION:1175 seamlessChangeRequest->mode = VMMDev_Seamless_Visible_Region;1176 break;1177 case PDM_SEAMLESS_MODE_HOSTWINDOW:1178 seamlessChangeRequest->mode = VMMDev_Seamless_Host_Window;1179 break;1180 }1181 1173 1182 1174 if (seamlessChangeRequest->eventAck == VMMDEV_EVENT_SEAMLESS_MODE_CHANGE_REQUEST) 1183 1175 { 1184 1176 /* Remember which mode the client has queried. */ 1185 pData-> lastSeamlessMode = pData->SeamlessMode;1177 pData->fLastSeamlessEnabled = pData->fSeamlessEnabled; 1186 1178 } 1187 1179 … … 1600 1592 } 1601 1593 1602 static DECLCALLBACK(int) vmmdevRequestSeamlessChange(PPDMIVMMDEVPORT pInterface, PDMISEAMLESSMODE mode)1594 static DECLCALLBACK(int) vmmdevRequestSeamlessChange(PPDMIVMMDEVPORT pInterface, bool fEnabled) 1603 1595 { 1604 1596 VMMDevState *pData = IVMMDEVPORT_2_VMMDEVSTATE(pInterface); 1605 1597 1606 1598 /* Verify that the new resolution is different and that guest does not yet know about it. */ 1607 bool fSameMode = (pData-> lastSeamlessMode == mode);1608 1609 Log(("vmmdevRequestSeamlessChange: same=%d. new=%d\n", fSameMode, mode));1599 bool fSameMode = (pData->fLastSeamlessEnabled == fEnabled); 1600 1601 Log(("vmmdevRequestSeamlessChange: same=%d. new=%d\n", fSameMode, fEnabled)); 1610 1602 1611 1603 if (!fSameMode) 1612 1604 { 1613 1605 /* we could validate the information here but hey, the guest can do that as well! */ 1614 pData-> SeamlessMode = mode;1606 pData->fSeamlessEnabled = fEnabled; 1615 1607 1616 1608 /* IRQ so the guest knows what's going on */ … … 2014 2006 2015 2007 /* disable seamless mode */ 2016 2017 pData->lastSeamlessMode = PDM_SEAMLESS_MODE_DISABLED; 2008 pData->fLastSeamlessEnabled = false; 2018 2009 2019 2010 /* Clear the event variables. -
trunk/src/VBox/Devices/VMMDev/VMMDevState.h
r3774 r3793 137 137 138 138 /* seamless mode change request */ 139 PDMISEAMLESSMODE lastSeamlessMode, SeamlessMode;139 bool fLastSeamlessEnabled, fSeamlessEnabled; 140 140 141 141 #ifdef TIMESYNC_BACKDOOR
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器