Total Members Voted: 20
static void gui_space_draw_icon () { coord x; int perc = get_space_perc(); color cl = (GetFreeCardSpaceKb()/1024<=15)?conf.osd_color_warn:(conf.space_color&0xFF); int i; int le = 23;//length int wi = 15;//width draw_line(conf.space_icon_pos.x+5, conf.space_icon_pos.y, conf.space_icon_pos.x+le, conf.space_icon_pos.y, COLOR_BLACK); // outer top draw_line(conf.space_icon_pos.x+6, conf.space_icon_pos.y+1, conf.space_icon_pos.x+le-1, conf.space_icon_pos.y+1, COLOR_WHITE); // inner top draw_line(conf.space_icon_pos.x, conf.space_icon_pos.y+5, conf.space_icon_pos.x, conf.space_icon_pos.y+wi, COLOR_BLACK); // outer left draw_line(conf.space_icon_pos.x+1, conf.space_icon_pos.y+6, conf.space_icon_pos.x+1, conf.space_icon_pos.y+wi-1, COLOR_WHITE); // inner left draw_line(conf.space_icon_pos.x, conf.space_icon_pos.y+wi, conf.space_icon_pos.x+le, conf.space_icon_pos.y+wi, COLOR_BLACK); // outer bottom draw_line(conf.space_icon_pos.x+1, conf.space_icon_pos.y+wi-1, conf.space_icon_pos.x+le-1, conf.space_icon_pos.y+wi-1, COLOR_WHITE); // inner bottom draw_line(conf.space_icon_pos.x+le, conf.space_icon_pos.y, conf.space_icon_pos.x+le, conf.space_icon_pos.y+wi, COLOR_BLACK); // outer right draw_line(conf.space_icon_pos.x+le-1, conf.space_icon_pos.y+1, conf.space_icon_pos.x+le-1, conf.space_icon_pos.y+wi-1, COLOR_WHITE); // inner right draw_line(conf.space_icon_pos.x+5, conf.space_icon_pos.y, conf.space_icon_pos.x, conf.space_icon_pos.y+5, COLOR_BLACK); // edge draw_line(conf.space_icon_pos.x+5, conf.space_icon_pos.y+1, conf.space_icon_pos.x+1, conf.space_icon_pos.y+5, COLOR_WHITE); // edge draw_line(conf.space_icon_pos.x+6, conf.space_icon_pos.y+1, conf.space_icon_pos.x+1, conf.space_icon_pos.y+6, COLOR_WHITE); // edge // memory fill x=le-(perc*(le-3)/100)-2; if (x>5) draw_line(conf.space_icon_pos.x+6, conf.space_icon_pos.y+2, conf.space_icon_pos.x+x, conf.space_icon_pos.y+2, COLOR_BLACK); if (x>2) draw_line(conf.space_icon_pos.x+x+1, conf.space_icon_pos.y+2, conf.space_icon_pos.x+le-2, conf.space_icon_pos.y+2, COLOR_WHITE); else draw_line(conf.space_icon_pos.x+4, conf.space_icon_pos.y+2, conf.space_icon_pos.x+le-2, conf.space_icon_pos.y+2, COLOR_WHITE); for(i=3;i<7;i++){ // /-- ------------| if (x>7-i) draw_pixel(conf.space_icon_pos.x+8-i, conf.space_icon_pos.y+i, COLOR_BLACK); // / 1st for loop | if (x>7-i) draw_pixel(conf.space_icon_pos.x+x, conf.space_icon_pos.y+i, COLOR_BLACK); // /__________________| draw_line(conf.space_icon_pos.x+x+1, conf.space_icon_pos.y+i, conf.space_icon_pos.x+le-2, conf.space_icon_pos.y+i, COLOR_WHITE);// | | } // | 2nd for loop | for(i=7;i<wi-2;i++){ // | | if (x>1) draw_pixel(conf.space_icon_pos.x+2, conf.space_icon_pos.y+i, COLOR_BLACK); // |-------------------| if (x>1) draw_pixel(conf.space_icon_pos.x+x, conf.space_icon_pos.y+i, COLOR_BLACK); draw_line(conf.space_icon_pos.x+x+1, conf.space_icon_pos.y+i, conf.space_icon_pos.x+le-2, conf.space_icon_pos.y+i, COLOR_WHITE); } if (x>1) draw_line(conf.space_icon_pos.x+2, conf.space_icon_pos.y+wi-2, conf.space_icon_pos.x+x, conf.space_icon_pos.y+wi-2, COLOR_BLACK); draw_line(conf.space_icon_pos.x+x+1, conf.space_icon_pos.y+wi-2, conf.space_icon_pos.x+le-2, conf.space_icon_pos.y+wi-2, COLOR_WHITE);}
Filling behaviour reverted. Now it shows full when camera card is empty. (I still don't understand why it has to show "full" when actually it is "empty" but it is a minor detail and I am highly adaptive. All I need to know is when to change cards).
Wha'?? There's a "Sports Mode" on my camera? All I see is P, Tv, Av, and M modes, the rest of my mode-dial is blank. Smiley (Had the camera almost a year and I've still not taken anything on that strange looking spot on the dial with the green splotch, I've no idea what that's even for. Green must be for eco-friendly, I bet that's it.)
Started by jvcleave General Chat
Started by Dee_Ann Hello, I'm a NEWBIE - HELP!! (Newbies assistance, User Guides and thank you notes)
Started by PhyrePhoX General Discussion and Assistance
Started by jairbj Completed and Working Scripts
Started by BuckSkin « 1 2 3 » General Help and Assistance on using CHDK stable releases