Revision: 12998
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=12998&view=rev
Author: hofman
Date: 2008-03-07 10:51:57 -0800 (Fri, 07 Mar 2008)
Log Message:
-----------
Use correct amount of bytes per row for bitmap.
Modified Paths:
--------------
trunk/bibdesk_vendorsrc/amaxwell/FileView/FVBitmapContextCache.m
Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVBitmapContextCache.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVBitmapContextCache.m
2008-03-07 18:41:24 UTC (rev 12997)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVBitmapContextCache.m
2008-03-07 18:51:57 UTC (rev 12998)
@@ -75,9 +75,9 @@
FV_PRIVATE_EXTERN CGContextRef FVIconBitmapContextCreateWithSize(size_t width,
size_t height)
{
- size_t bitsPerComponent = 8;
+ size_t bitsPerComponent = 8; // = 1 byte
size_t nComponents = 4;
- size_t bytesPerRow = bitsPerComponent * nComponents * width;
+ size_t bytesPerRow = nComponents * width; // as we use 1 byte per component
//Widen bytesPerRow out to a integer multiple of 16 bytes
bytesPerRow = (bytesPerRow + 15) & ~15;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit