~ubuntu-branches/ubuntu/wily/grass/wily

« back to all changes in this revision

Viewing changes to visualization/nviz/src/coldefs.h

Tags: 7.0.0~rc1+ds1-1~exp1
* New upstream release candidate.
* Repack upstream tarball, remove precompiled Python objects.
* Add upstream metadata.
* Update gbp.conf and Vcs-Git URL to use the experimental branch.
* Update watch file for GRASS 7.0.
* Drop build dependencies for Tcl/Tk, add build dependencies:
  python-numpy, libnetcdf-dev, netcdf-bin, libblas-dev, liblapack-dev
* Update Vcs-Browser URL to use cgit instead of gitweb.
* Update paths to use grass70.
* Add configure options: --with-netcdf, --with-blas, --with-lapack,
  remove --with-tcltk-includes.
* Update patches for GRASS 7.
* Update copyright file, changes:
  - Update copyright years
  - Group files by license
  - Remove unused license sections
* Add patches for various typos.
* Fix desktop file with patch instead of d/rules.
* Use minimal dh rules.
* Bump Standards-Version to 3.9.6, no changes.
* Use dpkg-maintscript-helper to replace directories with symlinks.
  (closes: #776349)
* Update my email to use @debian.org address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
/* these local defines help convert our packed integer format for color to
3
 
   & from the format needed by X */
4
 
 
5
 
#define RED_MASK 0x000000FF
6
 
#define GRN_MASK 0x0000FF00
7
 
#define BLU_MASK 0x00FF0000
8
 
 
9
 
#define INT_TO_RED(i, r)    (r = (i & RED_MASK))
10
 
#define INT_TO_GRN(i, g)    (g = (i & GRN_MASK) >> 8)
11
 
#define INT_TO_BLU(i, b)    (b = (i & BLU_MASK) >> 16)
12
 
 
13
 
#define RGB_TO_INT(r,g,b,i) (i = (((r) & RED_MASK) +                \
14
 
                                 ((int)((g) << 8) & GRN_MASK) +     \
15
 
                                 ((int)((b) << 16) & BLU_MASK)))
16
 
 
17
 
#define CONST_COLS 45
18
 
#define COLUMNS     9
19
 
 
20
 
#define MAX_CVAL 65535
21
 
#define HEXVAL(n) (MAX_CVAL * (n)/15.)
22
 
#define CHARVAL(n) (MAX_CVAL * (n)/255.)
23
 
#define TOCHARVAL(n) ((n) * 255./MAX_CVAL)