Ignore:
Timestamp:
10/02/11 02:11:23 (20 months ago)
Author:
philmoz
Message:

Add colored icons from CHDK-DE (thx waterwingz).
Modified from CHDK-DE version to define the icon colors in gui_draw.h instead of gui_batt.c and gui_space.c.
Enabled for G10, G12, SX30 & IXUS310 - define CAM_USE_COLORED_ICONS in platform_camera.h to activate (may also need to fix icon color definitions in gui_draw.h for your camera as well).
Also adds custom color palette handling for G12, SX30 & IXUS310.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/platform/sx30/platform_camera.h

    r1252 r1352  
    8585 
    8686        #undef CAM_BITMAP_PALETTE 
    87         #define CAM_BITMAP_PALETTE              7 
     87        #define CAM_BITMAP_PALETTE              12 
    8888 
    8989        //zebra letterbox for saving memory 
     
    111111    #define CAM_DISABLE_RAW_IN_LOW_LIGHT_MODE   1       // For cameras with 'low light' mode that does now work with raw define this 
    112112 
     113    #define CAM_LOAD_CUSTOM_COLORS              1       // Enable loading CHDK colors into the camera palette memory/hardware 
     114    #define CHDK_COLOR_BASE                     0xB3    // Start color index for CHDK colors loaded into camera palette. 
     115    #define CAM_USE_COLORED_ICONS               1       // Enable using the CHDK-DE colored icons. 
     116 
    113117//---------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.