vbox的更動 61740 路徑 trunk/src/VBox/Main
- 時間撮記:
- 2016-6-17 上午10:19:23 (8 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Main/src-client/DisplayImpl.cpp
r61564 r61740 170 170 171 171 #ifdef VBOX_WITH_CRHGSMI 172 if (RTCritSectRwIsInitialized 173 { 174 RTCritSectRwDelete 172 if (RTCritSectRwIsInitialized(&mCrOglLock)) 173 { 174 RTCritSectRwDelete(&mCrOglLock); 175 175 RT_ZERO(mCrOglLock); 176 176 } … … 884 884 885 885 if (uScreenId >= mcMonitors) 886 {887 886 return VINF_SUCCESS; 888 }889 887 890 888 DISPLAYFBINFO *pFBInfo = &maFramebuffers[uScreenId]; … … 1024 1022 return; */ 1025 1023 1026 i_checkCoordBounds 1027 1024 i_checkCoordBounds(&x, &y, &w, &h, maFramebuffers[uScreenId].w, 1025 maFramebuffers[uScreenId].h); 1028 1026 1029 1027 IFramebuffer *pFramebuffer = maFramebuffers[uScreenId].pFramebuffer; … … 1208 1206 CHECK_CONSOLE_DRV(mpDrv); 1209 1207 alock.release(); /* Release before calling up for lock order reasons. */ 1210 mpDrv->pUpPort->pfnReportHostCursorCapabilities 1208 mpDrv->pUpPort->pfnReportHostCursorCapabilities(mpDrv->pUpPort, fCapabilitiesAdded, fCapabilitiesRemoved); 1211 1209 mfHostCursorCapabilities = fHostCursorCapabilities; 1212 1210 return S_OK; … … 1485 1483 * disabled. 1486 1484 */ 1487 Assert 1485 Assert(fEnable == false); 1488 1486 1489 1487 mfVideoAccelVRDP = false; … … 1504 1502 /* The first client has connected. Enable the accel. 1505 1503 */ 1506 Assert 1504 Assert(fEnable == true); 1507 1505 1508 1506 mfVideoAccelVRDP = true; … … 1917 1915 if (pbDst != NULL) 1918 1916 { 1919 /* Copy guest VRAM to the allocated 32bpp buffer. */ 1920 const uint8_t *pu8Src = pFBInfo->pu8FramebufferVRAM; 1921 int32_t xSrc = 0; 1922 int32_t ySrc = 0; 1923 uint32_t u32SrcWidth = width; 1924 uint32_t u32SrcHeight = height; 1925 uint32_t u32SrcLineSize = pFBInfo->u32LineSize; 1926 uint32_t u32SrcBitsPerPixel = pFBInfo->u16BitsPerPixel; 1927 1928 int32_t xDst = 0; 1929 int32_t yDst = 0; 1930 uint32_t u32DstWidth = u32SrcWidth; 1931 uint32_t u32DstHeight = u32SrcHeight; 1932 uint32_t u32DstLineSize = u32DstWidth * 4; 1933 uint32_t u32DstBitsPerPixel = 32; 1934 1935 rc = pDisplay->mpDrv->pUpPort->pfnCopyRect(pDisplay->mpDrv->pUpPort, 1936 width, height, 1937 pu8Src, 1938 xSrc, ySrc, 1939 u32SrcWidth, u32SrcHeight, 1940 u32SrcLineSize, u32SrcBitsPerPixel, 1941 pbDst, 1942 xDst, yDst, 1943 u32DstWidth, u32DstHeight, 1944 u32DstLineSize, u32DstBitsPerPixel); 1917 if (pFBInfo->flags & VBVA_SCREEN_F_ACTIVE) 1918 { 1919 /* Copy guest VRAM to the allocated 32bpp buffer. */ 1920 const uint8_t *pu8Src = pFBInfo->pu8FramebufferVRAM; 1921 int32_t xSrc = 0; 1922 int32_t ySrc = 0; 1923 uint32_t u32SrcWidth = width; 1924 uint32_t u32SrcHeight = height; 1925 uint32_t u32SrcLineSize = pFBInfo->u32LineSize; 1926 uint32_t u32SrcBitsPerPixel = pFBInfo->u16BitsPerPixel; 1927 1928 int32_t xDst = 0; 1929 int32_t yDst = 0; 1930 uint32_t u32DstWidth = u32SrcWidth; 1931 uint32_t u32DstHeight = u32SrcHeight; 1932 uint32_t u32DstLineSize = u32DstWidth * 4; 1933 uint32_t u32DstBitsPerPixel = 32; 1934 1935 rc = pDisplay->mpDrv->pUpPort->pfnCopyRect(pDisplay->mpDrv->pUpPort, 1936 width, height, 1937 pu8Src, 1938 xSrc, ySrc, 1939 u32SrcWidth, u32SrcHeight, 1940 u32SrcLineSize, u32SrcBitsPerPixel, 1941 pbDst, 1942 xDst, yDst, 1943 u32DstWidth, u32DstHeight, 1944 u32DstLineSize, u32DstBitsPerPixel); 1945 } 1946 else 1947 { 1948 memset(pbDst, 0, cbRequired); 1949 rc = VINF_SUCCESS; 1950 } 1945 1951 if (RT_SUCCESS(rc)) 1946 1952 { … … 2509 2515 // { 2510 2516 // /* All ok. Redraw the screen. */ 2511 // handleDisplayUpdate 2517 // handleDisplayUpdate(x, y, width, height); 2512 2518 // } 2513 2519
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器