From: <mar...@us...> - 2008-12-28 16:18:00
|
Revision: 1863 http://navit.svn.sourceforge.net/navit/?rev=1863&view=rev Author: martin-s Date: 2008-12-28 16:17:57 +0000 (Sun, 28 Dec 2008) Log Message: ----------- Fix:Core:Disable roll, add get/set functions if enabled Modified Paths: -------------- trunk/navit/navit/transform.c Modified: trunk/navit/navit/transform.c =================================================================== --- trunk/navit/navit/transform.c 2008-12-28 16:02:55 UTC (rev 1862) +++ trunk/navit/navit/transform.c 2008-12-28 16:17:57 UTC (rev 1863) @@ -33,7 +33,7 @@ #include "point.h" #define POST_SHIFT 8 -#define ENABLE_ROLL +/* #define ENABLE_ROLL */ struct transformation { int yaw; /* Rotation angle */ @@ -529,7 +529,22 @@ return this_->pitch; } +#ifdef ENABLE_ROLL void +transform_set_roll(struct transformation *this_,int roll) +{ + this_->roll=roll; + transform_setup_matrix(this_); +} + +void +transform_get_roll(struct transformation *this_) +{ + return this_->roll; +} +#endif + +void transform_set_distance(struct transformation *this_,int distance) { this_->screen_dist=distance; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |