#include "hud.hxx"
#ifdef USE_HUD_TextList
-#define textString( x , y, text, font,digit) TextString( text, x , y ,digit ) //suma
+#define textString( x , y, text, digit) TextString( text, x , y ,digit ) //suma
#else
-#define textString( x , y, text, font,digit ) puDrawString ( guiFnt, text, x, y ); //suma
+#define textString( x , y, text, digit ) puDrawString ( guiFnt, text, x, y ); //suma
#endif
//========== Top of hud_card class member definitions =============
int l = abs((int)theta);
if (l) {
if( l<10)
- textString (x,y,TextScale,GLUT_BITMAP_8_BY_13,0 );
+ textString (x,y,TextScale,0 );
else if(l<100)
- textString (x-1.0,y,TextScale,GLUT_BITMAP_8_BY_13,0 );
+ textString (x-1.0,y,TextScale,0 );
else if( l<360 )
- textString (x-2.0,y,TextScale,GLUT_BITMAP_8_BY_13,0 );
+ textString (x-2.0,y,TextScale,0 );
}
}
if( !huds_notext(options)) {
textString ( marker_xs + 2, marker_ys,
- TextScale, GLUT_BITMAP_8_BY_13,0 );
+ TextScale,0 );
}
} else {
//begin suma
if( huds_left(options) ) {
textString( marker_xs - 8 * lenstr - 2,
marker_ys - 4,
- TextScale, GLUT_BITMAP_8_BY_13,0 );
+ TextScale, 0 );
} else {
textString( marker_xe + 3 * lenstr,
marker_ys - 4,
- TextScale, GLUT_BITMAP_8_BY_13,0 );
+ TextScale, 0 );
} //End if huds_left
} //End if !huds_notext
} //End if huds-both
if( !huds_notext(options) ) {
textString ( marker_xs - 4 * lenstr,
marker_ys + 4,
- TextScale, GLUT_BITMAP_8_BY_13,0 ); //suma
+ TextScale, 0 ); //suma
}
} else {
drawOneLine( marker_xs, marker_ys,
if( huds_top(options) ) {
textString ( marker_xs - 4 * lenstr,
height - 10,
- TextScale, GLUT_BITMAP_8_BY_13,0 ); //suma
+ TextScale, 0 ); //suma
} else {
textString( marker_xs - 4 * lenstr,
scrn_rect.top,
- TextScale, GLUT_BITMAP_8_BY_13,0 ); //suma
+ TextScale, 0 ); //suma
}
}
}
sprintf(TextScale,"%3.0f\n",(float)(data[centre] * data_scaling()));
if( !huds_notext(options)) {
- textString (x, ycentre, TextScale, GLUT_BITMAP_8_BY_13,0 );
+ textString (x, ycentre, TextScale, 0 );
}
for(i=1;i<5;i++) {
sprintf(TextScale,"%3.0f\n",(float)(data[centre-i-1] * data_scaling()));
if( !huds_notext(options))
- textString (x, yfirst, TextScale, GLUT_BITMAP_8_BY_13,0 );
+ textString (x, yfirst, TextScale, 0 );
sprintf(TextScale,"%3.0f\n",(float)(data[centre+i+1] * data_scaling()));
if( !huds_notext(options))
- textString (x, ysecond, TextScale, GLUT_BITMAP_8_BY_13,0 );
+ textString (x, ysecond, TextScale, 0 );
yfirst -= factors;
sprintf(TextScale,"%3.0f\n",(float)(data[centre] * data_scaling()));
if( !huds_notext(options)) {
- textString (w, ycentre, TextScale, GLUT_BITMAP_8_BY_13,0 );
+ textString (w, ycentre, TextScale, 0 );
}
for(i=1;i<5;i++) {
sprintf(TextScale,"%3.0f\n",(float)(data[centre-i-1] * data_scaling()));
if( !huds_notext(options))
- textString (w, yfirst, TextScale, GLUT_BITMAP_8_BY_13,0 );
+ textString (w, yfirst, TextScale, 0 );
sprintf(TextScale,"%3.0f\n",(float)(data[centre+i+1] * data_scaling()));
if( !huds_notext(options))
- textString (w, ysecond, TextScale, GLUT_BITMAP_8_BY_13,0 );
+ textString (w, ysecond, TextScale, 0 );
yfirst -= factors;
ysecond += factors;
sprintf(TextScale,"%3.0f\n",(float)(data[centre] * data_scaling()));
if( !huds_notext(options)) {
- textString (xcentre-10.0, y, TextScale, GLUT_BITMAP_8_BY_13,0 );
+ textString (xcentre-10.0, y, TextScale, 0 );
}
for(i=1;i<5;i++) {
sprintf(TextScale,"%3.0f\n",(float)(data[centre-i-1] * data_scaling()));
if( !huds_notext(options))
- textString (xfirst-10.0, y, TextScale, GLUT_BITMAP_8_BY_13,0 );
+ textString (xfirst-10.0, y, TextScale, 0 );
sprintf(TextScale,"%3.0f\n",(float)(data[centre+i+1] * data_scaling()));
if( !huds_notext(options))
- textString (xsecond-10.0, y, TextScale, GLUT_BITMAP_8_BY_13,0 );
+ textString (xsecond-10.0, y, TextScale, 0 );
xfirst -= factors;
sprintf(TextScale,"%3.0f\n",(float)(data[centre] * data_scaling()));
if( !huds_notext(options)) {
- textString (xcentre-10.0, h, TextScale, GLUT_BITMAP_8_BY_13,0 );
+ textString (xcentre-10.0, h, TextScale, 0 );
}
for(i=1;i<5;i++) {
sprintf(TextScale,"%3.0f\n",(float)(data[centre-i-1] * data_scaling()));
if( !huds_notext(options))
- textString (xfirst-10.0,h, TextScale, GLUT_BITMAP_8_BY_13,0 );
+ textString (xfirst-10.0,h, TextScale, 0 );
sprintf(TextScale,"%3.0f\n",(float)(data[centre+i+1] * data_scaling()));
if( !huds_notext(options))
- textString (xsecond-10.0,h, TextScale, GLUT_BITMAP_8_BY_13,0 );
+ textString (xsecond-10.0,h, TextScale, 0 );
xfirst -= factors;
#ifdef USE_HUD_TextList
-#define textString( x , y, text, font,digit ) TextString( text, x , y,digit ) //suma
+#define textString( x , y, text, digit ) TextString( text, x , y,digit ) //suma
#else
-#define textString( x , y, text, font,digit ) puDrawString ( guiFnt, text, x, y ); //suma
+#define textString( x , y, text, digit ) puDrawString ( guiFnt, text, x, y ); //suma
#endif
//============== Top of gauge_instr class member definitions ==============
}
// Now we know where to put the text.
text_y = marker_ys;
- textString( text_x, text_y, TextScale, GLUT_BITMAP_8_BY_13,0 ); //suma
+ textString( text_x, text_y, TextScale, 0 ); //suma
}
}
} //
if( !huds_notext(options) ) {
textString ( marker_xs - lenstr, marker_ys + 4,
- TextScale, GLUT_BITMAP_8_BY_13 ,0); //suma
+ TextScale ,0); //suma
}
}
else {
if( huds_top(options) ) {
textString ( marker_xs - lenstr,
height - 10,
- TextScale, GLUT_BITMAP_8_BY_13,0 ); //suma
+ TextScale, 0 ); //suma
}
else {
textString( marker_xs - lenstr, scrn_rect.top,
- TextScale, GLUT_BITMAP_8_BY_13,0 ); //suma
+ TextScale, 0 ); //suma
}
}
}