This is the mail archive of the cygwin-xfree@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: 8bit graphics and a not-working program



Dear Bernard and others,

> Dear Juntunen
> 
> If I do not answer correctly to your questions please do not blame me!!!!
> 
No, I just thank you ;)

> At the present I can say that running an X application under Cygwin-Xfree
> is not
> an easy task, mostly if your X application has not been compiled under
> C-X.
> Does your application run under Linux for instance? If yes and if you have
> the
> sources then you are in a better situation.
> 
Yes, the program should run in Linux too.

> If it runs under Linux, check xdpyinfo to know what are your screen and
> color
> depth. As indicated by Harold set your Windows NT to the number of bits
> (256
> colors for 8bits) of your program and then start C-X, then your
> application . It
> should run.
> 
I tried to set my NT display to 1024x768 with 256 colors, but then xfree
crashed when started. It seems that it doesn't start the vtwm at all, it
just gives the xterm "empty envelope", but you can't move it and when
clicking the left, xfree vanishes and you are back in the Windows. It
crashed even when I didn't start the vtwm. 

However when I set xfree to 800x600x8, it started and the program displayed
5 differently coloured upper task bars with black screens (when clicking the
right) instead of 2 as before. So we are going forward!

Then I set the Windows in 800x600x8 too, but again xfree didn't work.  

> If you use Test 7 then  your window is reduced and this might affect your
> program, but it works too , or you have to adjust parameters of your X
> application.
> 
I don't use Test 7. I have some version of cygwin (1.1.4+) and then I have
the following packages:
devel, DLLs, fonts, Prog, rgb, Xterm, Xwin.

Some more ideas?
Teemu

> Best regards
> Yours
> Bernard
> 
> I
> 
> 
> 
> 
> 
> Juntunen Teemu wrote:
> 
> > Hi all,
> >
> > I have installed cygwin and xfree in my NT to use one other program.
> However
> > this program doesn't work properly. When I start xfree with 16bit
> graphics
> > and try to display images with the program, it gives a following error:
> >
> > Displaying
> > X Error of failed request (invalid parameter attributes)
> > Major opcode of failed request: 78 (X_CreateColormap)
> > Serial number of failed request: 14
> > Current serial number in output stream: 277
> >
> > When I start xfree with 8bit graphics, the program gives no errors, but
> > nevertheless no picture too. It shows a reddish brown window and when I
> move
> > the cursor on it, it makes all the open windows as black holes. When I
> hit
> > the right button on it (as you should get different color setting in the
> > program then), the program seems to react as it chages the upper task
> bars
> > colors of open windows to white and screens to black.
> >
> > So the program need XCreateColormap, XStoreColor and 8bit graphics, but
> > doesn't work properly. Does anyone have any idea what is the problem?
> >
> > I know very little about cygwin and xfree so please make the answers and
> > questions simple enough ;)
> >
> > Regards and thanks
> > Teemu Juntunen
> 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]