Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Making an XFree86 application work under Xdec.
@ 2001-06-13  8:52 Brad
  2001-06-13 17:06 ` kenton
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Brad @ 2001-06-13  8:52 UTC (permalink / raw)


Hello,
I have an application, which was written for linux and I want to make
it work under digital unix. I have allready ported the code to compile
under digital unix, and seems to run. However it doesn't run quite as
it should, as the colours come out quite funny. I believe my problem
has something to do with the application expects to be running under
XFree86 and not Xdec. I have run the application within a vnc server
under digital unix. The vnc server is running XFree86, and the
application worked fine. So I know my application is working fine
under digital unix, I just need to get it to run under Xdec instead of
XFree86.
I believe I encountered a similar problem some years ago, without
finding a solution. I remember back to my days at uni where I had to
write a simple program which draws a shape on the screen in differing
shades of grey (black at top, grey at bottom). I wrote it under Linux
and it worked. However when I tried to run it under digital unix at
work it all came out funny. It came out
all black.

SO MY QUESTION IS THIS:
Does anybody have any tips on how I can make my application, written
for XFree86, run as it should under Xdec?
There must be something fairly simple that I just have no clue on,
since my simple uni assignment was such a simple program.
Anyone have experience in making an Xfree86 application run under
Xdec?

Any help would be GREATLY appreciated.
Kind regards,
Brad.

PS: Please respond to  stampo@hotmail.com   and the newsgroup.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Making an XFree86 application work under Xdec.
  2001-06-13  8:52 Making an XFree86 application work under Xdec Brad
@ 2001-06-13 17:06 ` kenton
  2001-06-14  1:31 ` Josef 'Jupp' Schugt
  2001-06-15  0:34 ` Brad
  2 siblings, 0 replies; 4+ messages in thread
From: kenton @ 2001-06-13 17:06 UTC (permalink / raw)


In article <54888ee3.0106130052.c710079@posting.google.com>,
Brad <stampo@hotmail.com> wrote:
>Does anybody have any tips on how I can make my application, written
>for XFree86, run as it should under Xdec?
>There must be something fairly simple that I just have no clue on,
>since my simple uni assignment was such a simple program.
>Anyone have experience in making an Xfree86 application run under
>Xdec?

A well written program should work the same on both platforms.
There must be a bug in there somewhere, perhaps dealing with
visual types or window depths.
-- 
Ken Lee, http://www.rahul.net/kenton/


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Making an XFree86 application work under Xdec.
  2001-06-13  8:52 Making an XFree86 application work under Xdec Brad
  2001-06-13 17:06 ` kenton
@ 2001-06-14  1:31 ` Josef 'Jupp' Schugt
  2001-06-15  0:34 ` Brad
  2 siblings, 0 replies; 4+ messages in thread
From: Josef 'Jupp' Schugt @ 2001-06-14  1:31 UTC (permalink / raw)


Hi!

>I have an application, which was written for linux and I want to make
>it work under digital unix. I have allready ported the code to compile
>under digital unix, and seems to run. However it doesn't run quite as
>it should, as the colours come out quite funny.

More information please: What color depth is your Xdec running at, how many
colors are used by you application, does it install a color map of its own?

Our digital Alphas at university have a Xdec/graphics card combination that
makes them run at 8 bit color depth. That results in some strange behavior if
you have some colorfull pictures. To obtain color depth do an xwininfo on root
window.

Josef 'Jupp' Schugt


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Making an XFree86 application work under Xdec.
  2001-06-13  8:52 Making an XFree86 application work under Xdec Brad
  2001-06-13 17:06 ` kenton
  2001-06-14  1:31 ` Josef 'Jupp' Schugt
@ 2001-06-15  0:34 ` Brad
  2 siblings, 0 replies; 4+ messages in thread
From: Brad @ 2001-06-15  0:34 UTC (permalink / raw)


Hi all,
Thanks for your responses to my questions. It was greatly appreciated
and has narrowed down my search for a solution. In fact I have been
able to get it to work the way it should, though I still have a
problem.
It turns out that my x-server is running with a visual class of
PseudoColor, and some software we need to run on the workstation
requires to be run in a visual of PseudoColor. However when I tried my
application running under different visuals eg TrueColor, StaticColor,
DirectColor of GrayScale then it works fine.
So you see I have a dilemma. I need to run the workstation under
PseudoColor, but my application doesn't run properly under
PseudoColor. Does anyone have any suggestions as to what I can do?
By the way, for those interested, what I am trying to do is create a
record and replay facility. I'm using x0rfbserver which exports the
framebuffer of the X server to one or more clients (using same
protocol as vnc): http://www.hexonet.de/software/x0rfbserver/index.html
Then I am passing it through rfbproxy which makes recordings of vnc
sessions:
http://people.redhat.com/twaugh/rfbproxy/
In this way I can record my x-sessions for replay at a later date.
It's all working very well under a visual of TrueColor, but I just
need to get it to work under the PseudoColor visual so it will work
with the application I am supposed to be making recordings of.
Any suggestions will be once again very much appreciated. Thanks for
your input so far.
Kind regards,
Brad.





stampo@hotmail.com (Brad) wrote in message news:<54888ee3.0106130052.c710079@posting.google.com>...
> Hello,
> I have an application, which was written for linux and I want to make
> it work under digital unix. I have allready ported the code to compile
> under digital unix, and seems to run. However it doesn't run quite as
> it should, as the colours come out quite funny. I believe my problem
> has something to do with the application expects to be running under
> XFree86 and not Xdec. I have run the application within a vnc server
> under digital unix. The vnc server is running XFree86, and the
> application worked fine. So I know my application is working fine
> under digital unix, I just need to get it to run under Xdec instead of
> XFree86.
> I believe I encountered a similar problem some years ago, without
> finding a solution. I remember back to my days at uni where I had to
> write a simple program which draws a shape on the screen in differing
> shades of grey (black at top, grey at bottom). I wrote it under Linux
> and it worked. However when I tried to run it under digital unix at
> work it all came out funny. It came out
> all black.
> 
> SO MY QUESTION IS THIS:
> Does anybody have any tips on how I can make my application, written
> for XFree86, run as it should under Xdec?
> There must be something fairly simple that I just have no clue on,
> since my simple uni assignment was such a simple program.
> Anyone have experience in making an Xfree86 application run under
> Xdec?
> 
> Any help would be GREATLY appreciated.
> Kind regards,
> Brad.
> 
> PS: Please respond to  stampo@hotmail.com   and the newsgroup.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-06-15  0:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-13  8:52 Making an XFree86 application work under Xdec Brad
2001-06-13 17:06 ` kenton
2001-06-14  1:31 ` Josef 'Jupp' Schugt
2001-06-15  0:34 ` Brad

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox