VirtualBox

Ignore:
Timestamp:
Feb 7, 2014 9:59:02 PM (11 years ago)
Author:
vboxsync
Message:

crOpenGL: screenshot bugfixes, some more to follow

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/util/bmpscale.cpp

    r50365 r50371  
    6161}
    6262
    63 DECLINLINE(void) gdImageSetPixel (gdImagePtr im, int x, int y, int color, int w)
     63DECLINLINE(void) gdImageSetPixel (gdImagePtr im, int x, int y, int color, int cbLine)
    6464{
    65     *(int32_t *)(im + y * w * 4 + x * 4) = color;
     65    *(int32_t *)(im + y * cbLine + x * 4) = color;
    6666}
    6767
     
    190190               gdTrueColorAlpha ((int) red,
    191191                         (int) green,
    192                          (int) blue, (int) alpha), dstW);
     192                         (int) blue, (int) alpha), dstW * 4);
    193193    }
    194194    }
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