"Mike Montalvo" <[EMAIL PROTECTED]> wrote in message
news:31857@palm-dev-forum...
> My questions have to do with compatibility. As long as I dont call API
> functions that are only in 3.5, will my software run on earlier 3.X
versions
> if I compile it using the 3.5 SDK? What about the ScrDisplayMode /
> WinScreenMode? Obviously if I use the 3.5 SDK, I have to use
winScreenMode,
> but is this compatible with pre 3.5 OSs?
The PalmOS 3.5 SDK reference states that WinScreenMode is the same call as
ScrDisplayMode -- they get mapped to the same trap number. It just got
renamed to fit in with the other Win... functions.
> Then the question of why my working software crashes on the Vx. Using a
> debug rom I got 'bus errors', and found in the archive about problems
> drawing to the screen with the debug rom. So I switched to the non debug
> version. CW gives me a blank error when my program tries to draw a grey
> pixel directly to an offscreen window. Everything else with the program
> works, its the drawing directly to the window that crashes it. Will
programs
> compiled with an SDK older than the current OS typically work? THe Palm
KB
> only seems to have articles on greyscale for pre 3.5 OSs. Do I have to
> change the way I am drawing grey to the screen?
Possibly. One thing -- the screen isn't valid for writing until you call
FrmDrawForm; this has been explained in the archives for this fourm. The
debug ROM puts an invalid value there. If you never call FrmDrawForm, you
can just use
WinSetDrawWindow(WinGetDisplayWindow());
to set the active draw window to the whole display.
As for changing the way you draw grey -- it would be a good idea to use the
supported APIs for drawing grey, at least on 3.5 or later devices. Palm
doesn't guarantee that the old methods will work on future hardware, but
using the new 3.5 APIs will continue to work in the future. In a game I'm
writing, I'm only supporting non-B/W modes on 3.5 devices.
--
Ben Combee
Veriprise Wireless <http://www.veriprise.com>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/