VirtualBox

Changeset 35102 in vbox


Ignore:
Timestamp:
Dec 14, 2010 4:23:46 PM (14 years ago)
Author:
vboxsync
Message:

Additions/x11/vboxvideo: correctness fix

Location:
trunk/src/VBox/Additions/x11/vboxvideo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxutils.c

    r35048 r35102  
    242242        pViews[i].u32ViewIndex = i;
    243243        pViews[i].u32ViewOffset = 0;
    244         pViews[i].u32ViewSize = pVBox->cbFramebuffer;
     244        pViews[i].u32ViewSize = pVBox->cbView;
    245245        pViews[i].u32MaxScreenSize = pVBox->cbFramebuffer;
    246246    }
     
    282282        return FALSE;
    283283    }
    284     pVBox->cbFramebuffer = offVRAMBaseMapping;
     284    pVBox->cbView = pVBox->cbFramebuffer = offVRAMBaseMapping;
    285285    pVBox->cScreens = VBoxHGSMIGetMonitorCount(&pVBox->guestCtx);
    286286    xf86DrvMsg(scrnIndex, X_INFO, "Requested monitor count: %u\n",
    287287               pVBox->cScreens);
    288     rc = VBoxHGSMISendViewInfo(&pVBox->guestCtx, pVBox->cScreens,
    289                                vboxFillViewInfo, (void *)pVBox);
    290288    for (i = 0; i < pVBox->cScreens; ++i)
    291289    {
     
    296294                                   VBVA_MIN_BUFFER_SIZE);
    297295    }
     296    rc = VBoxHGSMISendViewInfo(&pVBox->guestCtx, pVBox->cScreens,
     297                               vboxFillViewInfo, (void *)pVBox);
    298298
    299299    /* Set up the dirty rectangle handler.  Since this seems to be a
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.h

    r34911 r35102  
    185185    /** The amount of VRAM available for use as a framebuffer */
    186186    unsigned long cbFramebuffer;
     187    /** The size of the framebuffer and the VBVA buffers at the end of it. */
     188    unsigned long cbView;
    187189    /** The current line size in bytes */
    188190    uint32_t cbLine;
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