VirtualBox

Changeset 28242 in vbox


Ignore:
Timestamp:
Apr 13, 2010 10:47:48 AM (15 years ago)
Author:
vboxsync
Message:

crOpenGL: don't align row size for drawtoscreen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_muralfbo.c

    r28230 r28242  
    275275    char *pixels, *tmppixels, *pSrc, *pDst;
    276276    GLuint uid;
    277     int i, j, realrowsize, rowsize, rowstride, height;
     277    int i, j, rowsize, rowstride, height;
    278278    CRrecti rect;
    279279    CRContext *ctx = crStateGetCurrent();
     
    297297        if (crServerIntersectScreen(mural, i, &rect))
    298298        {
    299             rowsize = 4*RT_ALIGN_Z(rect.x2-rect.x1, 4);
    300             realrowsize = 4*(rect.x2-rect.x1);
     299            rowsize = 4*(rect.x2-rect.x1);
    301300            tmppixels = crAlloc(rowsize*(rect.y2-rect.y1));
    302301           
     
    315314            for (j=0; j<height; ++j)
    316315            {
    317                 crMemcpy(pDst, pSrc, realrowsize);
     316                crMemcpy(pDst, pSrc, rowsize);
    318317
    319318                pSrc -= rowstride;
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