Changeset 2817 in vbox for trunk/src/VBox
- Timestamp:
- May 23, 2007 3:13:53 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxBFE/DisplayImpl.cpp
r2791 r2817 412 412 mFramebuffer->getWidth ((ULONG*)&mpDrv->Connector.cx); 413 413 mFramebuffer->getHeight ((ULONG*)&mpDrv->Connector.cy); 414 mpDrv->pUpPort->pfnSetRenderVRAM (mpDrv->pUpPort, 415 !!(mpDrv->Connector.pu8Data != (uint8_t*)~0UL)); 414 416 } 415 417 } … … 425 427 mFramebuffer->getAddress ((uintptr_t *)&mpDrv->Connector.pu8Data); 426 428 mFramebuffer->getColorDepth ((ULONG*)&mpDrv->Connector.cBits); 429 mpDrv->pUpPort->pfnSetRenderVRAM (mpDrv->pUpPort, 430 !!(mpDrv->Connector.pu8Data != (uint8_t*)~0UL)); 427 431 } 428 432 } … … 672 676 673 677 if (fVideoAccelVRDP) 674 {675 678 fu32Flags |= VBVA_F_MODE_VRDP; 676 }677 679 } 678 680 … … 742 744 743 745 if (!fEnable && mpVbvaMemory) 744 {745 746 mpVbvaMemory->fu32ModeFlags &= ~VBVA_F_MODE_ENABLED; 746 }747 747 748 748 /* Safety precaution. There is no more VBVA until everything is setup! */ … … 857 857 858 858 if (*ppu8) 859 {860 859 RTMemFree (*ppu8); 861 }862 860 863 861 *ppu8 = NULL; … … 922 920 /* New data has been added to the record. */ 923 921 if (!vbvaPartialRead (&mpu8VbvaPartial, &mcbVbvaPartial, cbRecord, mpVbvaMemory)) 924 {925 922 return false; 926 }927 923 } 928 924 … … 956 952 /* Partial read must be started. */ 957 953 if (!vbvaPartialRead (&mpu8VbvaPartial, &mcbVbvaPartial, cbRecord, mpVbvaMemory)) 958 {959 954 return false; 960 }961 955 962 956 LogFlow(("MAIN::DisplayImpl::vbvaFetchCmd: started partial record mcbVbvaPartial = 0x%08X cbRecord 0x%08X, first = %d, free = %d\n", … … 1087 1081 /* Quick check for "nothing to update" case. */ 1088 1082 if (mpVbvaMemory->indexRecordFirst == mpVbvaMemory->indexRecordFree) 1089 {1090 1083 return; 1091 }1092 1084 1093 1085 /* Process the ring buffer */ … … 1096 1088 1097 1089 if (!fFramebufferIsNull) 1098 {1099 1090 mFramebuffer->Lock(); 1100 }1101 1091 1102 1092 /* Initialize dirty rectangles accumulator. */ … … 1156 1146 1157 1147 if (!fFramebufferIsNull) 1158 {1159 1148 mFramebuffer->Unlock (); 1160 }1161 1149 1162 1150 /* Draw the framebuffer. */ … … 1255 1243 */ 1256 1244 if (pData->pDisplay->mFramebuffer) 1257 {1258 1245 pData->pDisplay->updateDisplayData(); 1259 }1260 1246 1261 1247 /*
Note:
See TracChangeset
for help on using the changeset viewer.