Changeset 861 for trunk/core/gui_osd.c


Ignore:
Timestamp:
12/11/09 06:50:50 (3 years ago)
Author:
reyalp
Message:

sx200 update from oldgit in http://chdk.setepontos.com/index.php/topic,3994.msg44300.html#msg44300
Modified so RGB histogram and zebra on all cams now use #defines instead of hardcoded values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/gui_osd.c

    r841 r861  
    175175    switch (hist) { 
    176176        case HISTO_R:  
    177             cl=COLOR_RED;  
     177            cl=((mode_get()&MODE_MASK) == MODE_REC)?COLOR_HISTO_R:COLOR_HISTO_R_PLAY; 
    178178            break; 
    179179        case HISTO_G:  
    180             cl=COLOR_GREEN;  
    181             break; 
    182         case HISTO_B:  
    183             cl=((mode_get()&MODE_MASK) == MODE_REC)?0xDF:0xCC;  
     180            cl=((mode_get()&MODE_MASK) == MODE_REC)?COLOR_HISTO_G:COLOR_HISTO_G_PLAY; 
     181            break; 
     182        case HISTO_B: 
     183            cl=((mode_get()&MODE_MASK) == MODE_REC)?COLOR_HISTO_B:COLOR_HISTO_B_PLAY; 
    184184            break; 
    185185        case HISTO_RGB: 
     
    381381    color cls[] = { 
    382382        COLOR_TRANSPARENT, 
    383         (mrec)?0xDF:0xCC, 
    384         COLOR_GREEN, 
    385         (mrec)?COLOR_BLUE_LT:0x99, 
    386         COLOR_RED, 
    387         (mrec)?0x66:0xE2, 
    388         (mrec)?COLOR_YELLOW:0x66, 
     383        (mrec)?COLOR_HISTO_B:COLOR_HISTO_B_PLAY, 
     384        (mrec)?COLOR_HISTO_G:COLOR_HISTO_G_PLAY, 
     385        (mrec)?COLOR_HISTO_BG:COLOR_HISTO_BG_PLAY, 
     386        (mrec)?COLOR_HISTO_R:COLOR_HISTO_R_PLAY, 
     387        (mrec)?COLOR_HISTO_RB:COLOR_HISTO_RB_PLAY, 
     388        (mrec)?COLOR_HISTO_RG:COLOR_HISTO_RG_PLAY, 
    389389        COLOR_BLACK 
    390390    }; 
     
    542542    color cls[] = { 
    543543        COLOR_TRANSPARENT, 
    544         (mrec)?0xDF:0xCC, 
    545         COLOR_GREEN, 
    546         (mrec)?COLOR_BLUE_LT:0x99, 
    547         COLOR_RED, 
    548         (mrec)?0x66:0xE2, 
    549         (mrec)?COLOR_YELLOW:0x66, 
     544        (mrec)?COLOR_HISTO_B:COLOR_HISTO_B_PLAY, 
     545        (mrec)?COLOR_HISTO_G:COLOR_HISTO_G_PLAY, 
     546        (mrec)?COLOR_HISTO_BG:COLOR_HISTO_BG_PLAY, 
     547        (mrec)?COLOR_HISTO_R:COLOR_HISTO_R_PLAY, 
     548        (mrec)?COLOR_HISTO_RB:COLOR_HISTO_RB_PLAY, 
     549        (mrec)?COLOR_HISTO_RG:COLOR_HISTO_RG_PLAY, 
    550550        COLOR_BLACK 
    551551    }; 
     
    727727    color cls[] = { 
    728728        conf.histo_color>>8, 
    729         (m)?0xDF:0xCC, 
    730         COLOR_GREEN, 
    731         (m)?COLOR_BLUE_LT:0x99, 
    732         COLOR_RED, 
    733         (m)?0x66:0xE2, 
    734         (m)?COLOR_YELLOW:0x66, 
     729        (m)?COLOR_HISTO_B:COLOR_HISTO_B_PLAY, 
     730        (m)?COLOR_HISTO_G:COLOR_HISTO_G_PLAY, 
     731        (m)?COLOR_HISTO_BG:COLOR_HISTO_BG_PLAY, 
     732        (m)?COLOR_HISTO_R:COLOR_HISTO_R_PLAY, 
     733        (m)?COLOR_HISTO_RB:COLOR_HISTO_RB_PLAY, 
     734        (m)?COLOR_HISTO_RG:COLOR_HISTO_RG_PLAY, 
    735735        COLOR_WHITE 
    736736    }; 
Note: See TracChangeset for help on using the changeset viewer.