Changeset 60175 in vbox for trunk/src/VBox/Devices/Graphics
- Timestamp:
- Mar 23, 2016 5:15:23 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r59606 r60175 5231 5231 } 5232 5232 5233 int rc = PDMCritSectEnter(&pThis->CritSect, VERR_SEM_BUSY); 5234 AssertRC(rc); 5235 5236 /* This method only works if the VGA device is in a VBE mode. */ 5237 if ((pThis->vbe_regs[VBE_DISPI_INDEX_ENABLE] & VBE_DISPI_ENABLED) == 0) 5238 { 5239 PDMCritSectLeave(&pThis->CritSect); 5240 return VERR_INVALID_STATE; 5241 } 5242 5233 5243 /* Choose the rendering function. */ 5234 5244 switch (cSrcBitsPerPixel) … … 5237 5247 case 0: 5238 5248 /* Nothing to do, just return. */ 5249 PDMCritSectLeave(&pThis->CritSect); 5239 5250 return VINF_SUCCESS; 5240 5251 case 8: … … 5253 5264 v = VGA_DRAW_LINE32; 5254 5265 break; 5255 }5256 5257 int rc = PDMCritSectEnter(&pThis->CritSect, VERR_SEM_BUSY);5258 AssertRC(rc);5259 5260 /* This method only works if the VGA device is in a VBE mode. */5261 if ((pThis->vbe_regs[VBE_DISPI_INDEX_ENABLE] & VBE_DISPI_ENABLED) == 0)5262 {5263 PDMCritSectLeave(&pThis->CritSect);5264 return VERR_INVALID_STATE;5265 5266 } 5266 5267
Note:
See TracChangeset
for help on using the changeset viewer.