exposurses

Check-in [ed161d4179]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Remove extraneous line that came from menu_scroll.c
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: ed161d41794c3a10a317078a3b18b36bca524e54aeb28c425ea1cdd7afe931fe
User & Date: base@atomicules.co.uk 2013-08-31 07:47:35
Context
2013-08-31
07:50
Try to standardise on a string length Since it doesn't matter if it's longer. And I'm only using short strings. check-in: 99eba10b76 user: base@atomicules.co.uk tags: origin/master, trunk
07:47
Remove extraneous line that came from menu_scroll.c check-in: ed161d4179 user: base@atomicules.co.uk tags: origin/master, trunk
2013-08-29
23:24
Implement functionality to calc req'd and then sel nearest match in menu So far only implemented on Shutter menu, i.e. have to select ISO and Aperture, it will then use the equations to calculate the exact required shutter speed, but then select the nearest value in the menu. In order to do that added these two functions: - nearest_match - fraction_to_double The latter needed, because need to convert "1/1000", etc into float. For Aperture menu items can just strip off the "f/". Seems to work for Sunny 16. check-in: 6513b427e7 user: base@atomicules.co.uk tags: origin/master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to exposurses.c.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* This file based on menu_scroll.c from:
http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/intro.html */
#include <curses.h>
#include <menu.h>
#include <math.h>

#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
#define CTRLD 	4

char *iso_array[] = {
	"50",
	"100",
	"200",
	"400",
	"800",







<







1
2
3
4
5
6
7

8
9
10
11
12
13
14
/* This file based on menu_scroll.c from:
http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/intro.html */
#include <curses.h>
#include <menu.h>
#include <math.h>

#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))


char *iso_array[] = {
	"50",
	"100",
	"200",
	"400",
	"800",