Changeset 24288 in vbox
- Timestamp:
- Nov 3, 2009 12:53:17 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r24265 r24288 4971 4971 pInterface->pfnUpdateDisplayAll(pInterface); 4972 4972 4973 int rc = PDMCritSectEnter(&pThis->lock, VERR_SEM_BUSY); 4974 AssertRC(rc); 4975 4973 4976 /* 4974 4977 * Validate the buffer size. … … 4978 4981 { 4979 4982 Log(("vgaPortSnapshot: %d bytes are required, a buffer of %d bytes is profiled.\n", cbRequired, cbData)); 4983 PDMCritSectLeave(&pThis->lock); 4980 4984 return VERR_BUFFER_OVERFLOW; 4981 4985 } … … 5006 5010 * That is if display is blanked, we expect a black screen in the external buffer. 5007 5011 */ 5008 intrc = vga_update_display(pThis, false);5012 rc = vga_update_display(pThis, false); 5009 5013 5010 5014 /* restore */ … … 5012 5016 pThis->graphic_mode = graphic_mode; 5013 5017 pThis->fRenderVRAM = fRenderVRAM; 5018 PDMCritSectLeave(&pThis->lock); 5014 5019 5015 5020 if (rc != VINF_SUCCESS) … … 5047 5052 PDMDEV_ASSERT_EMT(VGASTATE2DEVINS(pThis)); 5048 5053 LogFlow(("vgaPortDisplayBlt: pvData=%p x=%d y=%d cx=%d cy=%d\n", pvData, x, y, cx, cy)); 5054 5055 rc = PDMCritSectEnter(&pThis->lock, VERR_SEM_BUSY); 5056 AssertRC(rc); 5049 5057 5050 5058 /* … … 5110 5118 rc = VERR_INVALID_PARAMETER; 5111 5119 5120 PDMCritSectLeave(&pThis->lock); 5121 5112 5122 LogFlow(("vgaPortDisplayBlt: returns %Rrc\n", rc)); 5113 5123 return rc; … … 5149 5159 } 5150 5160 5161 int rc = PDMCritSectEnter(&s->lock, VERR_SEM_BUSY); 5162 AssertRC(rc); 5163 5151 5164 /* Correct negative x and y coordinates. */ 5152 5165 if (x < 0) … … 5196 5209 LogFlow(("vgaPortUpdateDisplayRect: nothing to do: %dx%d\n", w, h)); 5197 5210 #endif /* DEBUG_sunlover */ 5211 PDMCritSectLeave(&s->lock); 5198 5212 return; 5199 5213 } … … 5259 5273 pu8Src += cbLineSrc; 5260 5274 } 5275 PDMCritSectLeave(&s->lock); 5261 5276 5262 5277 #ifdef DEBUG_sunlover
Note:
See TracChangeset
for help on using the changeset viewer.