a few enhancements, bugfixes - done - page 3 - General Discussion and Assistance - CHDK Forum supplierdeeply

Poll

Day Light saving time option, watcha think about it?

Whats DST? (dont need it)
1 (4.8%)
gimme gimme gimme (need it)
5 (23.8%)
Just a hint twice a year is sufficient
4 (19%)
might be useful
10 (47.6%)
can it cure STDs?
1 (4.8%)

Total Members Voted: 20

a few enhancements, bugfixes - done

  • 88 Replies
  • 30186 Views
Re: a few enhancements, bugfixes
« Reply #20 on: 06 / March / 2008, 17:05:36 »
Advertisements
Deleted
« Last Edit: 22 / April / 2008, 13:34:00 by Barney Fife »
[acseven/admin commented out: please refrain from more direct offensive language to any user. FW complaints to me] I felt it imperative to withdraw my TOTAL participation. Nobody has my permission, nor the right, to reinstate MY posts. Make-do with my quoted text in others' replies only. Bye

*

Offline wontolla

  • ****
  • 413
  • S3 & G9 & A720
Re: a few enhancements, bugfixes
« Reply #21 on: 07 / March / 2008, 07:30:02 »
New version of the memory icon.

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).

I made it smaller too. I added two "length" and "width" variables to make it easier resizing.

Have fun!

Code: (c) [Select]
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);
}

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: a few enhancements, bugfixes
« Reply #22 on: 07 / March / 2008, 07:39:20 »
thanks!
Quote
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).
well, see it that way: the icon represents the FREE disk space. the more filling, the more free disk space. its not diskspace, it's FREE diskspace.

Re: a few enhancements, bugfixes
« Reply #23 on: 07 / March / 2008, 08:18:27 »
Deleted
« Last Edit: 22 / April / 2008, 13:34:23 by Barney Fife »
[acseven/admin commented out: please refrain from more direct offensive language to any user. FW complaints to me] I felt it imperative to withdraw my TOTAL participation. Nobody has my permission, nor the right, to reinstate MY posts. Make-do with my quoted text in others' replies only. Bye


*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: a few enhancements, bugfixes
« Reply #24 on: 07 / March / 2008, 10:16:19 »
damn, server was down, i lost my whole text :(

uploaded new archive including builds for all cams, diff & german.lng.

please test, i wanna get this into trunk :D
please comment the change in the clock too please.
this time i left out any code regarding fixing raw/s*is.
i included wontollas changed icon.
also changed code, now you can push my icons in all corners (position automatically resets if you push an icon out of bounds, for example the fullscreen icons).

thanks for your nice explanation barney, funny :D

zSHARE - fewenhancements.zip

*

Offline wontolla

  • ****
  • 413
  • S3 & G9 & A720
Re: a few enhancements, bugfixes
« Reply #25 on: 07 / March / 2008, 11:24:48 »
Thanks for the explanation. I got it.

Barney, you took seriously that some brains work better with pictures. Next time you will draw a dynamic 3D graphic or something.

I will try your build tonight. I'm sure it is ready for production.
Thanks for fixing the corner thing, there is nothing else we can ask for that bar. It will be very welcomed by the users.

One question. Why does your diff file includes stuff like this?

+++ platform/s2is/sub/100e/stubs_auto.S   (working copy)
@@ -1,94 +1,94 @@
-/* THIS FILE IS GENERATED */
-#include "stubs_asm.h"
-
-STUB(FF811298)
-STUB(FF811384)
-STUB(FF811444)
-STUB(FF8117DC)
-STUB(FF811800)

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: a few enhancements, bugfixes
« Reply #26 on: 07 / March / 2008, 11:44:09 »
there is one thing about my bar that annoys me, as of now i subtract 10 pixels of each bar for "safety" measures, so the fullscreen bar actually does not cover the full screen. 10 pixels isnt much though, you hardly notice it. plus, maybe i'm gonna make it a pixel thinner as it is right now, because (i hope) that would prevent the flickering (as of now when you push the bar to the bottom, a part of it flickers because the canon counter is drawn over it). have to make some tests regarding that. your sd card icon is finished though, we'll see what the users will say.

i havent cleaned the diff file, sorry. ignore the stubs stuff :)
thanks for all your input & help by the way :)

almost forgot:
Quote
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.)


well in video mode on a620 you can switch to different video modes (by left and right clicking), i.e. sport (60 fps), small filesize, standard, my colors.
« Last Edit: 07 / March / 2008, 17:09:22 by PhyrePhoX »

Re: a few enhancements, bugfixes
« Reply #27 on: 07 / March / 2008, 17:43:55 »
Deleted
« Last Edit: 22 / April / 2008, 13:34:45 by Barney Fife »
[acseven/admin commented out: please refrain from more direct offensive language to any user. FW complaints to me] I felt it imperative to withdraw my TOTAL participation. Nobody has my permission, nor the right, to reinstate MY posts. Make-do with my quoted text in others' replies only. Bye


*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: a few enhancements, bugfixes
« Reply #28 on: 07 / March / 2008, 19:04:45 »
i often use portrait mode, i hate fiddling around with options when i just want to take a quick shot of a person around me :)
okay, now the bar is full height/width of screen, didnt make it thinner though.
attached build for s3is :)
this really should be final now. somehow. i hope. though i didnt get comments regarding the clock yet :p

Re: a few enhancements, bugfixes
« Reply #29 on: 07 / March / 2008, 20:20:04 »
Deleted
« Last Edit: 22 / April / 2008, 13:35:06 by Barney Fife »
[acseven/admin commented out: please refrain from more direct offensive language to any user. FW complaints to me] I felt it imperative to withdraw my TOTAL participation. Nobody has my permission, nor the right, to reinstate MY posts. Make-do with my quoted text in others' replies only. Bye

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal