Update of /cvsroot/easycalc/easycalc
In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv6805
Modified Files:
grtaps.c
Log Message:
bold font in trace mode
Index: grtaps.c
===================================================================
RCS file: /cvsroot/easycalc/easycalc/grtaps.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** grtaps.c 30 Sep 2007 00:35:42 -0000 1.33
--- grtaps.c 18 Dec 2007 12:47:29 -0000 1.34
***************
*** 31,34 ****
--- 31,35 ----
#else
#define HanderaCoord( x ) ( x )
+ #define HanderaAdjustFont( font ) ( font )
#endif
***************
*** 46,49 ****
--- 47,52 ----
#include "funcs.h"
+ #define BOLDRES 1
+
static Int16 trackSelected = 0;
static double lastParam = 0.0;
***************
*** 531,534 ****
--- 534,544 ----
}
else {
+ FontID oldfont;
+ #ifdef SONY_SDK
+ if (gHrMode == hrSony)
+ oldfont = HRFntSetFont(gHrLibRefNum, hrStdFont+BOLDRES);
+ else
+ #endif
+ oldfont = FntSetFont(HanderaAdjustFont(stdFont+BOLDRES));
gadget_bounds(FrmGetActiveForm(), graphGadget, &natbounds, &stdbounds);
***************
*** 572,575 ****
--- 582,591 ----
oldangle = math_rad_to_user(lastParam);
}
+ #ifdef SONY_SDK
+ if(gHrMode == hrSony)
+ HRFntSetFont(gHrLibRefNum, oldfont);
+ else
+ #endif
+ FntSetFont(oldfont);
}
}
***************
*** 833,836 ****
--- 849,859 ----
/* Is tracking checked? */
else if (CtlGetValue(GetObjectPtr(btnGraphTrack))) {
+ FontID oldfont;
+ #ifdef SONY_SDK
+ if (gHrMode == hrSony)
+ oldfont = HRFntSetFont(gHrLibRefNum, hrStdFont+BOLDRES);
+ else
+ #endif
+ oldfont = FntSetFont(HanderaAdjustFont(stdFont+BOLDRES));
if (graphPrefs.functype == graph_func)
grtaps_track_func(x, y, &natbounds, &stdbounds);
***************
*** 839,842 ****
--- 862,871 ----
else if (graphPrefs.functype == graph_param)
grtaps_track_param(x, y, &natbounds, &stdbounds);
+ #ifdef SONY_SDK
+ if(gHrMode == hrSony)
+ HRFntSetFont(gHrLibRefNum, oldfont);
+ else
+ #endif
+ FntSetFont(oldfont);
}
else /* Move the graph */
|