nanogui: FLTK 1.1.4 code running on Microwindows 0.90 targeted to ARM


Previous by date: 2 Mar 2004 12:24:45 -0000 Re: FLTK 1.1.4 code running on Microwindows 0.90 targeted to ARM, Mark Mussetter
Next by date: 2 Mar 2004 12:24:45 -0000 Price list, greg.censoft.com
Previous in thread: 2 Mar 2004 12:24:45 -0000 Re: FLTK 1.1.4 code running on Microwindows 0.90 targeted to ARM, Mark Mussetter
Next in thread:

Subject: Re: [nanogui] FLTK 1.1.4 code running on Microwindows 0.90 targeted to ARM
From: "Da'niel Csabai" ####@####.####
Date: 2 Mar 2004 12:24:45 -0000
Message-Id: <404475F4.8090407@freemail.hu>

> We had 'funky' colors too when using FLUID to design a window and 
> running Microwindows-0.90.  We found that the problem was that fltk 
> and nxlib were using masks and shifts to render the color and send it 
> on to Microwindows, but we didn't have the RGB masks initialized in 
> our screen info structure.  In the XOpenDisplay() function in 
> nxlib/OpenDis.c,  a call to GrGetScreenInfo(&sinfo) is made.  If 
> sinfo.rmask, sinfo.gmask, and sinfo.bmask aren't correct here, you 
> will get weird looking colors.
>
> We set ours as follows and our color problem cleared up:
>         sinfo.rmask = 0x00ff0000;
>         sinfo.gmask = 0x0000ff00;
>         sinfo.bmask = 0x000000ff;
>
That was useful, thank you.  :) On Hynix processor I am going to use the 
following setup (565, bgr, 16bit resolution):

        sinfo.rmask = 0x0000001f;
        sinfo.gmask = 0x000007e0;
        sinfo.bmask = 0x0000f800;


Regards,
Daniel

>
> I hope this helps,
>
> Mark
>
> At 05:34 PM 3/1/2004 +0100, you wrote:
>
>
>> George Goh írta:
>>
>>> FLNX 0.18 is based on FLTK 1.0.7, which is fine for the application 
>>> that
>>> I'm developing. I suspect that there might be a problem with the 
>>> display
>>> hardware on the 7202, although I'm not 100% sure. Like you, I've 
>>> tried a
>>> lot of different settings on the software and none worked to correct 
>>> the
>>> inverted colours.
>>
>> Now I think so, too. I had bad colours (not really inverted) on a 
>> screen with a 320x240 resolution.
>> I connected a screen with 640x480. It seems the blue replaced by red, 
>> but green seems to be correct.
>> I am not sure, I need a test.
>> If I have right. It seems the driver or the processor documentation 
>> cause the problem.
>>
>>> I'm not using fluid because my GUI is rather simple - a scrollable menu
>>> and some instructions on one screen, and some graphs on another.
>>>
>>>
>> I have a more complex gui and I designed it with fluid, so I need. I 
>> built a pc version fluid.
>>
>> Regards & Thanks,
>> Daniel
>>
>>> George.
>>>
>>>
>>> On Wed, 2004-02-25 at 15:38, Daniel Csabai wrote:
>>>
>>>
>>>> Hi George,
>>>>
>>>>
>>>>
>>>>
>>>>> Hi Daniel,
>>>>>
>>>>> I'm using the Hynix 7202 as well, and I'm using flnx 0.18 with
>>>>> microwindows 0.90. For me, using flnx with microwindows means I only
>>>>> have to worry about 2 packages instead of 3(fltk + nxlib + microwin).
>>>>>
>>>>>
>>>> Thank you your mail. That is good to know about somebody who is 
>>>> also dealing with Hynix . the 2 packages is more clearer 
>>>> configuration,
>>>> but maybe it cause more problem. My program is written in fltk 
>>>> 1.1.4 and flnx 0.18 seems to base on older fltk version.
>>>>
>>>>
>>>>
>>>>> I tried fltk with nxlib before, and I got displays which had inverted
>>>>> colours, no matter what config I used. This problem went away when I
>>>>> reverted back to flnx.
>>>>>
>>>>>
>>>>>
>>>> I got to work my program on my hw with microwin + nxlib + fltk 
>>>> configuration. I faced with this problem of bad colours.
>>>> I recognized there are two calls (XgetDefault and XSetErrorHandler) 
>>>> are not handled (they are in stub.c). Maybe they make the problem.
>>>> What is your experience with flnx? Which fluid version do you use?
>>>>
>>>> Regards,
>>>> Daniel
>>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: ####@####.####
>> For additional commands, e-mail: ####@####.####
>
>
>
>
>
>



Previous by date: 2 Mar 2004 12:24:45 -0000 Re: FLTK 1.1.4 code running on Microwindows 0.90 targeted to ARM, Mark Mussetter
Next by date: 2 Mar 2004 12:24:45 -0000 Price list, greg.censoft.com
Previous in thread: 2 Mar 2004 12:24:45 -0000 Re: FLTK 1.1.4 code running on Microwindows 0.90 targeted to ARM, Mark Mussetter
Next in thread:


Powered by ezmlm-browse 0.20.