Update of /cvsroot/easycalc/easycalc
In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv15765
Modified Files:
result.c
Log Message:
bold font in result area
Index: result.c
===================================================================
RCS file: /cvsroot/easycalc/easycalc/result.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** result.c 23 Sep 2006 23:40:30 -0000 1.32
--- result.c 18 Dec 2007 09:12:31 -0000 1.33
***************
*** 49,52 ****
--- 49,54 ----
#include "mtxedit.h"
+ #define BOLDRES 1
+
/* This handle gets freed from the PalmOS at the end,
* or it would have to be called from some other routine than AppHandler */
***************
*** 622,629 ****
#ifdef SONY_SDK
if (gHrMode == hrSony)
! oldfont = HRFntSetFont(gHrLibRefNum, hrLargeFont);
else
#endif
! oldfont = FntSetFont(HanderaAdjustFont(largeFont));
chrwidth = FntCharsWidth(text,StrLen(text));
if (chrwidth + 5*gSonyFactor < resultBounds.extent.x)
--- 624,631 ----
#ifdef SONY_SDK
if (gHrMode == hrSony)
! oldfont = HRFntSetFont(gHrLibRefNum, hrLargeFont+5*BOLDRES);
else
#endif
! oldfont = FntSetFont(HanderaAdjustFont(largeFont+5*BOLDRES));
chrwidth = FntCharsWidth(text,StrLen(text));
if (chrwidth + 5*gSonyFactor < resultBounds.extent.x)
***************
*** 670,677 ****
#ifdef SONY_SDK
if (gHrMode == hrSony)
! oldfont = HRFntSetFont(gHrLibRefNum, hrLargeFont);
else
#endif
! oldfont = FntSetFont(HanderaAdjustFont(largeFont));
textwidth=2;
--- 672,679 ----
#ifdef SONY_SDK
if (gHrMode == hrSony)
! oldfont = HRFntSetFont(gHrLibRefNum, hrLargeFont+5*BOLDRES);
else
#endif
! oldfont = FntSetFont(HanderaAdjustFont(largeFont+5*BOLDRES));
textwidth=2;
***************
*** 686,693 ****
#ifdef SONY_SDK
if (gHrMode == hrSony)
! HRFntSetFont(gHrLibRefNum, hrLargeFont);
else
#endif
! FntSetFont(HanderaAdjustFont(largeFont));
textwidth += FntCharsWidth(base, expon-base);
if (fin) break;
--- 688,695 ----
#ifdef SONY_SDK
if (gHrMode == hrSony)
! HRFntSetFont(gHrLibRefNum, hrLargeFont+5*BOLDRES);
else
#endif
! FntSetFont(HanderaAdjustFont(largeFont+5*BOLDRES));
textwidth += FntCharsWidth(base, expon-base);
if (fin) break;
***************
*** 695,702 ****
#ifdef SONY_SDK
if (gHrMode == hrSony)
! HRFntSetFont(gHrLibRefNum, hrStdFont);
else
#endif
! FntSetFont(HanderaAdjustFont(stdFont));
if (expon[0] == '(') {
expon++;
--- 697,704 ----
#ifdef SONY_SDK
if (gHrMode == hrSony)
! HRFntSetFont(gHrLibRefNum, hrStdFont+BOLDRES);
else
#endif
! FntSetFont(HanderaAdjustFont(stdFont+BOLDRES));
if (expon[0] == '(') {
expon++;
***************
*** 738,745 ****
#ifdef SONY_SDK
if (gHrMode == hrSony)
! HRFntSetFont(gHrLibRefNum, hrLargeFont);
else
#endif
! FntSetFont(HanderaAdjustFont(largeFont));
clie_drawchars(base, expon - base, width - textwidth, 2);
textwidth -= FntCharsWidth(base, expon - base);
--- 740,747 ----
#ifdef SONY_SDK
if (gHrMode == hrSony)
! HRFntSetFont(gHrLibRefNum, hrLargeFont+5*BOLDRES);
else
#endif
! FntSetFont(HanderaAdjustFont(largeFont+5*BOLDRES));
clie_drawchars(base, expon - base, width - textwidth, 2);
textwidth -= FntCharsWidth(base, expon - base);
***************
*** 748,755 ****
#ifdef SONY_SDK
if (gHrMode == hrSony)
! HRFntSetFont(gHrLibRefNum, hrStdFont);
else
#endif
! FntSetFont(HanderaAdjustFont(stdFont));
if (expon[0] == '(') {
expon++;
--- 750,757 ----
#ifdef SONY_SDK
if (gHrMode == hrSony)
! HRFntSetFont(gHrLibRefNum, hrStdFont+BOLDRES);
else
#endif
! FntSetFont(HanderaAdjustFont(stdFont+BOLDRES));
if (expon[0] == '(') {
expon++;
|