transparent colors
How do you set WinSetBackColorRGB to a transparent color? So for instance, if I drew text, only the letters would be drawn and not the back color. Thanks. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
drawing bitmaps
I call WinSetCoordinateSystem(kDensityDouble) and I can use functions like WinDrawLine on my high-density windows, but when I use WinDrawBitmap(...) it doubles the pixels so the image it draws looks low-res. Here's the code. MemHandle handle = DmGetResource(bitmapRsc, 1000); BitmapType *bitmap = (BitmapPtr)MemHandleLock(handle); WinDrawBitmap(bitmap, 0, 0); MemHandleUnlock(handle); DmReleaseResource(handle); This is what I'm including in my .rcp file for PilRC. BITMAPCOLOR16K ID 1000 Image.bmp COMPRESS BPP 16 DENSITY 144 What am I doing wrong? -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: drawing bitmaps
This paragraph describes my problem exactly in the article. Note that this means you will not be able to draw a low density bitmap as a quarter size small bitmap on a high density screen by simply calling WinSetCoordinateSystem before the draw. You would need to create a nativeFormat offscreen windows and then set the offscreen window's bitmap to low density. Draw the bitmap and then set the offscreen window's bitmap back to high density. Finally copy from this window to the screen to get the desired effect. And this is how you do it for anyone else that encounters this problem. BmpSetDensity(WinGetBitmap(MyOffsreenWindow), kDensityLow); WinDrawBitmap(MyBitmap, 0, 0); BmpSetDensity(WinGetBitmap(MyOffsreenWindow), kDensityDouble); -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: PNO development, PRC Tools or CodeWarrior?
I am using PRC-Tools for my PNO development. It's arm compiler is very up to date using GCC 3.3.1. Here's a site I found that got me set up using the compiler. http://www.handheld-basic.com/documentation/text/page_1495.html Also, check out the (CodeWarrior Examples), that come with the 5.3 sdk. There is an armlet example which will show you how to actually call your PNO in your code. You can also post questions in the PNO forum. http://www.escribe.com/computing/poaf/ Hope this helps! Chris. Laurens [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, (I tried posting my question to the pno-forum, but my message is not showing up.) I get the impression that for PNO development I'm better off using CodeWarrior. I can find almost no documentation on PNO development with PRC Tools. What do you people advise? Go for CodeWarrior, not knowing whether Metrowerks will support Cobalt in future versions, or stick with PRC Tools hoping that the new Eclipse-based suite will improve PNO development? I avoided CW because of the complaints about v9.2 , but I hear that v9.3 is a great improvement. $400 (or how much is it?) is not a trivial amount, but I'm willing to spend the money if CW indeed makes PNO development easier. Thanks -Laurens -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
fastest double buffering?
What's the fastest way to do double buffering on a Palm OS 5 device? Right now, I call WinCopyRectangle to copy the off-screen window to the screen and then I call WinDrawRectangle to erase the off-screen window. Is there a faster way? Thanks in advance. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Developing for T3 Screen?
Can this combination be used to develop for the Tungsten T3? I use PRC-Tools and I have a bunch of programs running on my Tungsten T3. The Tungsten T3 runs Palm OS 5 so you might want to download the latest SDK. Specifically, I'm referring to the taller screen and buttons or controls in that additional area? Yes, you can do all those things with PRC-Tools. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
ARM MathLib
Is there an ARM version of MathLIB? I make heavy use of these math functions and I need all the speed I can get. Thanks. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: endian formats with fixed point math
But, if that were the case why does, 300 10, on a PC equal 307200, the correct answer, and on my Tungsten T3 I get -2048? -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: endian formats with fixed point math
It still doesn't work. I even tried this. Int32 number = 300; Int32 shift = 10; Int32 result = number shift; result is equal to -2048, which is the same incorrect answer as before. I should have mentioned that I'm using PRC-Tools. Is this an issue with the compiler? Did you actually test this out in Codewarrior? Thanks for your help! Ben Combee [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Because you didn't write 300L 10. 300 by itself is a 16-bit integer. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
endian formats with fixed point math
I have some code that uses fixed point math in 22.10 representation. So I do a lot of bit shifting like this. int Number = 300 10; This doesn't work on a Palm though, because it uses Big Endian byte order. I had read that you need to swap the bytes before you perform the bit shift and then swap them back. Is this correct? If so, what's the best way to do this? Any other suggestions about my problem would be appreciated. Thanks! -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
double buffering in double-density
Does anyone have or know where I can find code examples of double-buffering using a double-density (320x320) off-screen window in 16-bit color? -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
-0n flags in PRC-Tools
Does the -On optimization flags optimize your code for speed or for size? Also, when I compile my multi-segment program with -O1 or -O2 flag, I get strange errors that cause my program to crash when I attempt to run it. But if I use the -O0 flag for no optimizations my program runs fine. Has anyone else experienced this? Thanks. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
multi-segment woes
I've been able to create some simple multi-segment apps with PRC-Tools, but I'm having trouble segmenting more complex code. The following are some of the errors that I've received in my many attempts. I'm using the Palm OS 5.3 Simulator. Run68K.c, Line:1043, invalid addr mode for byte instruction Run68k.c, Line:4425, Unhandled instr Run68k.c, Line:2245, Invalid read from 0651A5D8 Any idea what these errors means? Also, are there any restrictions or limitations in creating code segments that I should be aware of in more complex projects that use things such as polymorphism, templates, and overloaded operators? Thanks. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
multi-segments and classes
I've found information on placing a function into a segment but how do you place an entire class into a code segment? Do you just have to specify the code segment for each function in the class or is there an easier way? I'm using PRC-Tools. Thanks. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: multi-segments and classes
Found a nice article that answered my question. http://www.falch.net/Articles/?art=334 desa [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I've found information on placing a function into a segment but how do you place an entire class into a code segment? Do you just have to specify the code segment for each function in the class or is there an easier way? I'm using PRC-Tools. Thanks. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
MathLib with PRC-Tools
I followed all the steps in the manual for MathLib, but anytime I use a math function I get errors compiling using PRC-Tools 3.0 that I'm guessing mean the compiler can't find the definition of the function. Here is an example of the errors. undefined reference to 'sin(double)' Any ideas? Thanks. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
stylus startup screen on emulator
Is there anyway to disable the stylus calibration screen that comes up when you start the Palm OS Simulator? I'm using 5.3. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
game programming
Does anyone have any sample code or know of any resources on the net about developing games for the Palm OS 5? All I'm looking for is some code that shows how to perform double buffering. Thanks. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
stylus location
How do I get the location of the stylus on the screen? -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
STLport with prc-tools
Has anyone been able to get STLport to work with PRC-Tools? If so, please explain what you did to get it to work. All I need is vectors and strings, so I don't need to build the library. Thanks. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
TimGetTicks
What header file do I need to include to use TimGetTicks? -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
adding search directories in PRC-Tools
How do you set search directories in PRC-Tools? Is it also possible to change the order of the search directories? I need to set a search directory so when I do this, #include my_header.h It will search the directory that I've added for my_header.h. Thanks. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/