From: Ton v. O. <tvo...@us...> - 2006-12-28 23:24:29
|
Update of /cvsroot/easycalc/easycalc In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv6075 Modified Files: calc.c Log Message: Put grayscale Sony HiRes devices into HiRes mode. Before they reverted to LoRes causing all kinds of problems. Index: calc.c =================================================================== RCS file: /cvsroot/easycalc/easycalc/calc.c,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** calc.c 10 Nov 2006 04:12:56 -0000 1.37 --- calc.c 28 Dec 2006 23:24:24 -0000 1.38 *************** *** 253,257 **** height = hrHeight; depth = 8; ! HRWinScreenMode ( gHrLibRefNum, winScreenModeSet, &width, &height, &depth, NULL ); gHrMode = hrSony; gSonyFactor = 2; --- 253,259 ---- height = hrHeight; depth = 8; ! /* Following call fails for grayscale HiRes devices. ! * Taken care of below in the 'if (palmOS35)' part */ ! HRWinScreenMode(gHrLibRefNum, winScreenModeSet, &width, &height, &depth, NULL); gHrMode = hrSony; gSonyFactor = 2; *************** *** 262,265 **** --- 264,277 ---- if (!colorDisplay){ UInt32 depth=4; + #ifdef SONY_SDK + if (gHrMode == hrSony){ + /* Set Sony Hires grayscale devices to HiRes */ + UInt32 width = hrWidth; + UInt32 height = hrHeight; + if (!HRWinScreenMode(gHrLibRefNum, winScreenModeSet, &width, &height, &depth, NULL)) + grayDisplay = true; + } + else + #endif if (!WinScreenMode(winScreenModeSet,NULL,NULL,&depth,NULL)) grayDisplay=true; |