- Timestamp:
- Sep 12, 2006, 12:59:25 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Torrent.m
r859 r860 50 50 BE(0x00000015), BE(0x00000015), BE(0x00000015), BE(0x00000015), 51 51 BE(0x00000015), BE(0x00000015), BE(0x00000010), BE(0x00000005) }; 52 53 static uint32_t kBack[] = { BE(0xB4B4B4FF), BE(0xE3E3E3FF) };54 52 55 53 static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80 … … 336 334 int bytesPerRow = [bitmap bytesPerRow]; 337 335 338 //left and right borders339 /*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 347 336 int8_t * pieces = malloc(width); 348 337 [self getAvailability: pieces size: width]; … … 387 376 color = kBlue3; 388 377 389 //point to pixel ( w, 2) and draw "vertically"378 //point to pixel (w, 2) and draw "vertically" 390 379 p = (uint32_t *) ( bitmapData + 2 * bytesPerRow ) + w; 391 380 for( h = 2; h < BAR_HEIGHT; h++ )
Note: See TracChangeset
for help on using the changeset viewer.