soc.2009.vulture: 028c203c: Fix DIB rowstride calculation.

gdick at soc.pidgin.im gdick at soc.pidgin.im
Wed Jul 15 15:50:37 EDT 2009


-----------------------------------------------------------------
Revision: 028c203c7ef4e31e2f30ae6d31e7a6ead0ea727c
Ancestor: 1b88b86b68eb61b4144c403110676524b55fba39
Author: gdick at soc.pidgin.im
Date: 2009-07-14T18:58:50
Branch: im.pidgin.soc.2009.vulture
URL: http://d.pidgin.im/viewmtn/revision/info/028c203c7ef4e31e2f30ae6d31e7a6ead0ea727c

Modified files:
        vulture/purplebicon.c

ChangeLog: 

Fix DIB rowstride calculation.

-------------- next part --------------
============================================================
--- vulture/purplebicon.c	1cfad681c114b272db5bb25d91343d6f288a285b
+++ vulture/purplebicon.c	200d6c7d2537e25ae244a92d148869164a7657aa
@@ -111,7 +111,7 @@ HBITMAP PurpleGetBuddyIcon(PurpleBuddy *
 	bmi.bmiHeader.biYPelsPerMeter = 0;
 
 	/* Scanlines must start on DWORD boundaries. */
-	cbDIBRowstride = (4 * cx * iChannels + 3) / 4;
+	cbDIBRowstride = 4 * ((cx * iChannels + 3) / 4);
 
 	lpbyBits = ProcHeapAlloc(cbDIBRowstride * cy);
 


More information about the Commits mailing list