Update of /cvsroot/easycalc/easycalc
In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv10781
Modified Files:
calc.c
Log Message:
Properly close Sony HR library when used.
Index: calc.c
===================================================================
RCS file: /cvsroot/easycalc/easycalc/calc.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -d -r1.38 -r1.39
*** calc.c 28 Dec 2006 23:24:24 -0000 1.38
--- calc.c 29 Dec 2006 02:17:37 -0000 1.39
***************
*** 328,331 ****
--- 328,339 ----
TerminateResizeSupport();
#endif
+ #ifdef SONY_SDK
+ if (gHrMode == hrSony) {
+ /* Set screen back to defaults and close HR library */
+ HRWinScreenMode(gHrLibRefNum, winScreenModeSetToDefaults,
+ NULL, NULL, NULL, NULL);
+ HRClose(gHrLibRefNum);
+ }
+ #endif
}
|