Changeset 3761 in vbox for trunk/src/VBox/Frontends/VBoxBFE
- Timestamp:
- Jul 22, 2007 10:43:14 AM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 23084
- Location:
- trunk/src/VBox/Frontends/VBoxBFE
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxBFE/DisplayImpl.cpp
r3670 r3761 308 308 * 309 309 * @returns COM status code 310 * @param colorDepthAddress of result variable.311 */ 312 uint32_t VMDisplay::get ColorDepth()310 * @param bitsPerPixel Address of result variable. 311 */ 312 uint32_t VMDisplay::getBitsPerPixel() 313 313 { 314 314 Assert(mpDrv); … … 409 409 mFramebuffer->getAddress ((uintptr_t *)&mpDrv->Connector.pu8Data); 410 410 mFramebuffer->getLineSize ((ULONG*)&mpDrv->Connector.cbScanline); 411 mFramebuffer->get ColorDepth((ULONG*)&mpDrv->Connector.cBits);411 mFramebuffer->getBitsPerPixel ((ULONG*)&mpDrv->Connector.cBits); 412 412 mFramebuffer->getWidth ((ULONG*)&mpDrv->Connector.cx); 413 413 mFramebuffer->getHeight ((ULONG*)&mpDrv->Connector.cy); … … 426 426 { 427 427 mFramebuffer->getAddress ((uintptr_t *)&mpDrv->Connector.pu8Data); 428 mFramebuffer->get ColorDepth((ULONG*)&mpDrv->Connector.cBits);428 mFramebuffer->getBitsPerPixel ((ULONG*)&mpDrv->Connector.cBits); 429 429 mpDrv->pUpPort->pfnSetRenderVRAM (mpDrv->pUpPort, 430 430 !!(mpDrv->Connector.pu8Data != (uint8_t*)~0UL)); … … 824 824 } 825 825 826 void VMDisplay::SetVideoModeHint(ULONG aWidth, ULONG aHeight, ULONG a ColorDepth, ULONG aDisplay)826 void VMDisplay::SetVideoModeHint(ULONG aWidth, ULONG aHeight, ULONG aBitsPerPixel, ULONG aDisplay) 827 827 { 828 828 PPDMIVMMDEVPORT pVMMDevPort = gVMMDev->getVMMDevPort (); 829 829 830 830 if (pVMMDevPort) 831 pVMMDevPort->pfnRequestDisplayChange(pVMMDevPort, aWidth, aHeight, a ColorDepth, aDisplay);831 pVMMDevPort->pfnRequestDisplayChange(pVMMDevPort, aWidth, aHeight, aBitsPerPixel, aDisplay); 832 832 } 833 833 -
trunk/src/VBox/Frontends/VBoxBFE/DisplayImpl.h
r3110 r3761 47 47 48 48 void updatePointerShape(bool fVisible, bool fAlpha, uint32_t xHot, uint32_t yHot, uint32_t width, uint32_t height, void *pShape); 49 void SetVideoModeHint(ULONG aWidth, ULONG aHeight, ULONG a ColorDepth, ULONG aDisplay);49 void SetVideoModeHint(ULONG aWidth, ULONG aHeight, ULONG aBitsPerPixel, ULONG aDisplay); 50 50 51 51 static const PDMDRVREG DrvReg; … … 53 53 uint32_t getWidth(); 54 54 uint32_t getHeight(); 55 uint32_t get ColorDepth();55 uint32_t getBitsPerPixel(); 56 56 57 57 STDMETHODIMP RegisterExternalFramebuffer(Framebuffer *Framebuffer); -
trunk/src/VBox/Frontends/VBoxBFE/Framebuffer.h
r3576 r3761 42 42 virtual HRESULT Unlock() = 0; 43 43 virtual HRESULT getAddress(uintptr_t *address) = 0; 44 virtual HRESULT get ColorDepth(ULONG *colorDepth) = 0;44 virtual HRESULT getBitsPerPixel(ULONG *bitsPerPixel) = 0; 45 45 virtual HRESULT getLineSize(ULONG *lineSize) = 0; 46 46 virtual HRESULT NotifyUpdate(ULONG x, ULONG y, -
trunk/src/VBox/Frontends/VBoxBFE/SDLFramebuffer.cpp
r3701 r3761 185 185 * 186 186 * @returns COM status code 187 * @param colorDepthAddress of result variable188 */ 189 HRESULT SDLFramebuffer::get ColorDepth(ULONG *colorDepth)190 { 191 LogFlow(("SDLFramebuffer::Get ColorDepth\n"));192 193 if (! colorDepth)187 * @param bitsPerPixel Address of result variable 188 */ 189 HRESULT SDLFramebuffer::getBitsPerPixel(ULONG *bitsPerPixel) 190 { 191 LogFlow(("SDLFramebuffer::GetBitsPerPixel\n")); 192 193 if (!bitsPerPixel) 194 194 return E_INVALIDARG; 195 * colorDepth= (ULONG)(mScreen ? mScreen->format->BitsPerPixel : 0);195 *bitsPerPixel = (ULONG)(mScreen ? mScreen->format->BitsPerPixel : 0); 196 196 return S_OK; 197 197 } -
trunk/src/VBox/Frontends/VBoxBFE/SDLFramebuffer.h
r3669 r3761 48 48 virtual HRESULT Unlock(); 49 49 virtual HRESULT getAddress(uintptr_t *address); 50 virtual HRESULT get ColorDepth(ULONG *colorDepth);50 virtual HRESULT getBitsPerPixel(ULONG *bitsPerPixel); 51 51 virtual HRESULT getLineSize(ULONG *lineSize); 52 52 virtual HRESULT NotifyUpdate(ULONG x, ULONG y, -
trunk/src/VBox/Frontends/VBoxBFE/VBoxBFE.cpp
r3670 r3761 729 729 if (g_u32VRamSizeMB * _1M >= gFramebuffer->getHostXres() 730 730 * gFramebuffer->getHostYres() 731 * (gDisplay->get ColorDepth() / 8))731 * (gDisplay->getBitsPerPixel() / 8)) 732 732 gDisplay->SetVideoModeHint(gFramebuffer->getHostXres(), gFramebuffer->getHostYres(), 0, 0); 733 733 #endif
Note:
See TracChangeset
for help on using the changeset viewer.