~compiz-team/compiz/compiz.fix_1041535

« back to all changes in this revision

Viewing changes to plugins/wall/src/wall.cpp

Replaced #defines of standard variable types. Fixes: . Approved by Sam Spilsbury.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
 
38
38
#include "wall.h"
39
39
 
40
 
#define PI 3.14159265359f
41
 
#define VIEWPORT_SWITCHER_SIZE 100
42
 
#define ARROW_SIZE 33
 
40
static const double PI = 3.14159265359f;
 
41
static const unsigned short VIEWPORT_SWITCHER_SIZE = 100;
 
42
static const unsigned short ARROW_SIZE = 33;
43
43
 
44
44
#define getColorRGBA(name) \
45
45
    r = optionGet##name##Red() / 65535.0f;\
385
385
}
386
386
 
387
387
/* movement remainder that gets ignored for direction calculation */
388
 
#define IGNORE_REMAINDER 0.05
 
388
static const float IGNORE_REMAINDER = 0.05f;
389
389
 
390
390
void
391
391
WallScreen::determineMovementAngle ()