-#ifdef HAVE_CONFIG_H\r
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#endif
#include <stdlib.h>
#include <string.h>
-#include <Aircraft/aircraft.h>
+#include <Aircraft/aircraft.hxx>
#include <Debug/fg_debug.h>
#include <Include/fg_constants.h>
#include <Math/fg_random.h>
#include <Math/polar3d.hxx>
#include <Scenery/scenery.hxx>
#include <Time/fg_timer.hxx>
-#include <Weather/weather.h>
#include "hud.hxx"
-//============== Top of guage_instr class member definitions ==============\r
+//============== Top of guage_instr class member definitions ==============
guage_instr ::
guage_instr( int x,
if( !(options & HUDS_NOTEXT)) {
disp_val = i;
- sprintf( TextScale, "%d", disp_val );
+ sprintf( TextScale, "%d",disp_val * (int)(data_scaling() +.5));
if((options & HUDS_LEFT) && (options && HUDS_RIGHT)) {
text_x = mid_scr.x - 2 - ((3 * strlen( TextScale ))>>1);
// text_x = marker_xs - scrn_rect.left;
if( options & HUDS_RIGHT ) {
- drawOneLine(scrn_rect.left, text_y,
- marker_xe, text_y + 5);
- drawOneLine(scrn_rect.left, text_y,
- marker_xe, text_y - 5);
+ drawOneLine(scrn_rect.left, text_y + 5,
+ marker_xe, text_y);
+ drawOneLine(scrn_rect.left, text_y - 5,
+ marker_xe, text_y);
}
if( options & HUDS_LEFT ) {
- drawOneLine(scrn_rect.left + scrn_rect.right, text_y,
- marker_xs, text_y + 5);
- drawOneLine(scrn_rect.left + scrn_rect.right, text_y,
- marker_xs, text_y - 5);
+ drawOneLine(scrn_rect.left + scrn_rect.right, text_y + 5,
+ marker_xs, text_y);
+ drawOneLine(scrn_rect.left + scrn_rect.right, text_y - 5,
+ marker_xs, text_y);
}
} // End if VERTICAL SCALE TYPE
else { // Horizontal scale by default
else {
disp_val = i;
}
- sprintf( TextScale, "%d", disp_val );
+ sprintf( TextScale, "%d", (int)(disp_val * data_scaling() +.5));
// Draw major ticks and text only if far enough from the edge.
if(( (marker_xs - 10)> scrn_rect.left ) &&
( (marker_xs + 10) < (scrn_rect.left + scrn_rect.right))){