VirtualBox

Changeset 2817 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 23, 2007 3:13:53 PM (18 years ago)
Author:
vboxsync
Message:

L4: Make sure we don't render into the VRAM while the current console is not active

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxBFE/DisplayImpl.cpp

    r2791 r2817  
    412412        mFramebuffer->getWidth ((ULONG*)&mpDrv->Connector.cx);
    413413        mFramebuffer->getHeight ((ULONG*)&mpDrv->Connector.cy);
     414        mpDrv->pUpPort->pfnSetRenderVRAM (mpDrv->pUpPort,
     415                                          !!(mpDrv->Connector.pu8Data != (uint8_t*)~0UL));
    414416    }
    415417}
     
    425427        mFramebuffer->getAddress ((uintptr_t *)&mpDrv->Connector.pu8Data);
    426428        mFramebuffer->getColorDepth ((ULONG*)&mpDrv->Connector.cBits);
     429        mpDrv->pUpPort->pfnSetRenderVRAM (mpDrv->pUpPort,
     430                                          !!(mpDrv->Connector.pu8Data != (uint8_t*)~0UL));
    427431    }
    428432}
     
    672676
    673677            if (fVideoAccelVRDP)
    674             {
    675678                fu32Flags |= VBVA_F_MODE_VRDP;
    676             }
    677679        }
    678680
     
    742744
    743745    if (!fEnable && mpVbvaMemory)
    744     {
    745746        mpVbvaMemory->fu32ModeFlags &= ~VBVA_F_MODE_ENABLED;
    746     }
    747747
    748748    /* Safety precaution. There is no more VBVA until everything is setup! */
     
    857857
    858858        if (*ppu8)
    859         {
    860859            RTMemFree (*ppu8);
    861         }
    862860
    863861        *ppu8 = NULL;
     
    922920            /* New data has been added to the record. */
    923921            if (!vbvaPartialRead (&mpu8VbvaPartial, &mcbVbvaPartial, cbRecord, mpVbvaMemory))
    924             {
    925922                return false;
    926             }
    927923        }
    928924
     
    956952            /* Partial read must be started. */
    957953            if (!vbvaPartialRead (&mpu8VbvaPartial, &mcbVbvaPartial, cbRecord, mpVbvaMemory))
    958             {
    959954                return false;
    960             }
    961955
    962956            LogFlow(("MAIN::DisplayImpl::vbvaFetchCmd: started partial record mcbVbvaPartial = 0x%08X cbRecord 0x%08X, first = %d, free = %d\n",
     
    10871081    /* Quick check for "nothing to update" case. */
    10881082    if (mpVbvaMemory->indexRecordFirst == mpVbvaMemory->indexRecordFree)
    1089     {
    10901083        return;
    1091     }
    10921084
    10931085    /* Process the ring buffer */
     
    10961088
    10971089    if (!fFramebufferIsNull)
    1098     {
    10991090        mFramebuffer->Lock();
    1100     }
    11011091
    11021092    /* Initialize dirty rectangles accumulator. */
     
    11561146
    11571147    if (!fFramebufferIsNull)
    1158     {
    11591148        mFramebuffer->Unlock ();
    1160     }
    11611149
    11621150    /* Draw the framebuffer. */
     
    12551243     */
    12561244    if (pData->pDisplay->mFramebuffer)
    1257     {
    12581245        pData->pDisplay->updateDisplayData();
    1259     }
    12601246
    12611247    /*
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette