Changeset 34129 in vbox for trunk/src/VBox/Devices/Graphics
- Timestamp:
- Nov 16, 2010 10:31:39 PM (14 years ago)
- Location:
- trunk/src/VBox/Devices/Graphics
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r34024 r34129 5220 5220 } 5221 5221 5222 static DECLCALLBACK(int) vgaR3SaveDone(PPDMDEVINS pDevIns, PSSMHANDLE pSSM) 5223 { 5224 #ifdef VBOX_WITH_VIDEOHWACCEL 5225 return vboxVBVASaveStateDone(pDevIns, pSSM); 5226 #else 5227 return VINF_SUCCESS; 5228 #endif 5229 } 5222 5230 5223 5231 /** … … 6007 6015 rc = PDMDevHlpSSMRegisterEx(pDevIns, VGA_SAVEDSTATE_VERSION, sizeof(*pThis), NULL, 6008 6016 NULL, vgaR3LiveExec, NULL, 6009 vgaR3SavePrep, vgaR3SaveExec, NULL,6017 vgaR3SavePrep, vgaR3SaveExec, vgaR3SaveDone, 6010 6018 NULL, vgaR3LoadExec, vgaR3LoadDone); 6011 6019 if (RT_FAILURE(rc)) -
trunk/src/VBox/Devices/Graphics/DevVGA.h
r33855 r34129 529 529 int vbvaVHWACommandCompleteAsynch(PPDMIDISPLAYVBVACALLBACKS pInterface, PVBOXVHWACMD pCmd); 530 530 int vbvaVHWAConstruct (PVGASTATE pVGAState); 531 int vbvaVHWADisable (PVGASTATE pVGAState);532 531 int vbvaVHWAReset (PVGASTATE pVGAState); 533 532 534 533 int vboxVBVASaveStatePrep (PPDMDEVINS pDevIns, PSSMHANDLE pSSM); 534 int vboxVBVASaveStateDone (PPDMDEVINS pDevIns, PSSMHANDLE pSSM); 535 535 # endif 536 536 -
trunk/src/VBox/Devices/Graphics/DevVGA_VBVA.cpp
r33540 r34129 1191 1191 1192 1192 /* @todo call this also on reset? */ 1193 int vbvaVHWADisable (PVGASTATE pVGAState) 1194 { 1195 VBOXVHWACMD *pCmd = vbvaVHWAHHCommandCreate(pVGAState, VBOXVHWACMD_TYPE_DISABLE, 0, 0); 1193 int vbvaVHWAEnable (PVGASTATE pVGAState, bool bEnable) 1194 { 1195 const VBOXVHWACMD_TYPE enmType = bEnable ? VBOXVHWACMD_TYPE_HH_ENABLE : VBOXVHWACMD_TYPE_HH_DISABLE; 1196 VBOXVHWACMD *pCmd = vbvaVHWAHHCommandCreate(pVGAState, 1197 enmType, 1198 0, 0); 1196 1199 Assert(pCmd); 1197 1200 if(pCmd) … … 1220 1223 if (iDisplay >= pVGAState->cMonitors) 1221 1224 break; 1222 vbvaVHWAHHCommandReinit(pCmd, VBOXVHWACMD_TYPE_DISABLE, (int32_t)iDisplay);1225 vbvaVHWAHHCommandReinit(pCmd, enmType, (int32_t)iDisplay); 1223 1226 1224 1227 } while (true); … … 1234 1237 { 1235 1238 /* ensure we have no pending commands */ 1236 return vbvaVHWADisable(PDMINS_2_DATA(pDevIns, PVGASTATE)); 1239 return vbvaVHWAEnable(PDMINS_2_DATA(pDevIns, PVGASTATE), false); 1240 } 1241 1242 int vboxVBVASaveStateDone (PPDMDEVINS pDevIns, PSSMHANDLE pSSM) 1243 { 1244 /* ensure we have no pending commands */ 1245 return vbvaVHWAEnable(PDMINS_2_DATA(pDevIns, PVGASTATE), true); 1237 1246 } 1238 1247
Note:
See TracChangeset
for help on using the changeset viewer.