hi there,

I'm exactly in the situation described here:
http://groups.google.com/groups?hl=it&lr=&ie=UTF-8&oe=UTF-8&selm=9sclfd%24v3b%241%40zappa.falch.net

Arda had a problem with OffScreenWindow and WinSetForeColor.

shifting to my own problem, I use 8bit depth. using WinSetForeColor
with an offscreen window, it returns me 0 and POSE generates an
exception (of course, good).

what's the problem with offscreenwindow here?

I'm using Handspring Treo 270 rom on POSE. I don't have a 270 model,
so I cannot test on physical device: I own a 180 model which support
grayscale, I'm developing a porting to the colored world.

unfortunately, tips wrote for Arda didn't help me in any way.

have you got any suggestion?

I forward here the original post:

---fwd

Da:Arda Tekin ([EMAIL PROTECTED])
Soggetto:OffscreenWindow problem in 8/16 bit Screen Depth 
Newsgroups:pilot.programmer.codewarrior
Data:2001-11-07 17:14:49 PST 


I have a problem with OffScreenWindow in 16 bit colordepth on
handspring
prism(PalmOS 3.5).
My purpose is, drawing something on an offscreen Window and copy it to
main
window.

Problem is when I set screen depth to 16bit after then
WinCreateOffscreenWindow function returns NULL.(Why?Because of PalmOS
3.5
instead of 4.0)

if I set screen depth to 8 bit, function returns right address.
but now another problem occurs.

hOffscreenWindow = WinCreateOffscreenWindow (..);
WinSetDrawWindow(hOffscreenWindow);

RGBType rgbColor = {0,0x00,0x00,0xFF};//C++
WinPushDrawState();
IndexedColorType colorNumber = WinRGBToIndex(&rgbcolor);     -ERROR !!
WinSetForeColor(colorNumber);
WinDrawLine(x1,y1,x2,y2);
WinPopDrawState();

For every rgbColor, WinRGBToIndex PalmOS function returns 0 to
ColorNumber.
And on Emulator Debug mode(using CWR6) WinRGBtoIndex function creates
error.
(Because of that Emulator Debug Options' "Low Memory Access" is
checked)

What is happening on background?What are the real reasons of these two
problems?

Thanks in advance.
Arda Tekin

---fwd end

thank you.
--------

Matro

RealPopup, the freeware winpopup replacer
http://www.realpopup.it

MaTreo, freeware frontscreen for your Treo
http://www.realpopup.it/matreo

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to