Changeset 860


Ignore:
Timestamp:
Sep 12, 2006, 12:59:25 AM (15 years ago)
Author:
livings124
Message:

small cleanup in advanced bar code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r859 r860  
    5050      BE(0x00000015), BE(0x00000015), BE(0x00000015), BE(0x00000015),
    5151      BE(0x00000015), BE(0x00000015), BE(0x00000010), BE(0x00000005) };
    52 
    53 static uint32_t kBack[] = { BE(0xB4B4B4FF), BE(0xE3E3E3FF) };
    5452
    5553static uint32_t kRed   = BE(0xFF6450FF), //255, 100, 80
     
    336334    int bytesPerRow = [bitmap bytesPerRow];
    337335
    338     //left and right borders
    339     /*p = (uint32_t *) bitmapData;
    340     for(h = 0; h < BAR_HEIGHT; h++)
    341     {
    342         p[0] = kBorder[h];
    343         p[width - 1] = kBorder[h];
    344         p += bytesPerRow / 4;
    345     }*/
    346 
    347336    int8_t * pieces = malloc(width);
    348337    [self getAvailability: pieces size: width];
     
    387376            color = kBlue3;
    388377       
    389         //point to pixel ( w, 2 ) and draw "vertically"
     378        //point to pixel (w, 2) and draw "vertically"
    390379        p = (uint32_t *) ( bitmapData + 2 * bytesPerRow ) + w;
    391380        for( h = 2; h < BAR_HEIGHT; h++ )
Note: See TracChangeset for help on using the changeset viewer.