Changeset 1969


Ignore:
Timestamp:
07/10/12 05:14:28 (11 months ago)
Author:
reyalp
Message:

textbox drawing fix from tobimarg in http://chdk.setepontos.com/index.php?topic=650.msg87548#msg87548

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/gui_tbox.c

    r1874 r1969  
    3333static const char*  tbox_msg; 
    3434static char         cursor_to_draw; 
    35 static int          cl_greygrey; 
    3635 
    3736// height of prompt 
     
    271270            // clean previous symbols line 
    272271            int pline = (line == 0)?lines:line-1; 
    273             draw_filled_rect(key_offset_x, tbox_buttons_y, key_offset_x+(tbox_width-1)*FONT_WIDTH, tbox_buttons_y+3*FONT_HEIGHT, cl_greygrey); 
     272            draw_filled_rect(key_offset_x, tbox_buttons_y, key_offset_x+(tbox_width-1)*FONT_WIDTH, tbox_buttons_y+3*FONT_HEIGHT, MAKE_COLOR(COLOR_GREY, COLOR_GREY)); 
    274273 
    275274            // draw current symbols line 
     
    331330    } 
    332331    else { 
    333         draw_line(text_offset_x+(1+cursor-offset)*FONT_WIDTH, text_offset_y+1, text_offset_x+(1+cursor-offset)*FONT_WIDTH, text_offset_y+FONT_HEIGHT-3, cl_greygrey); 
     332        draw_line(text_offset_x+(1+cursor-offset)*FONT_WIDTH, text_offset_y+1, text_offset_x+(1+cursor-offset)*FONT_WIDTH, text_offset_y+FONT_HEIGHT-3, MAKE_COLOR(COLOR_GREY, COLOR_GREY)); 
    334333        cursor_to_draw = 1; 
    335334    } 
Note: See TracChangeset for help on using the changeset viewer.