placing launched MAGIC 7.1 app dissappears

2002-03-29 Thread Ed Conrad

Hi,

I got magic 7.1 installed and trying to run it about
10 times only got the magic window to open once. 
After that, I can't open it at all.  The full-screen
window opens, the app window is on the mouse cusor,
but when I place it, it vanishes.

Does anyone know why windows vanish like that?

Thanks

Ed

__
Do You Yahoo!?
Yahoo! Greetings - send holiday greetings for Easter, Passover
http://greetings.yahoo.com/



RE: Can multiple remote sessions be run simultaneously under v4.2.0?

2002-03-29 Thread Harold Hunt

Oops... XWin-works is my known-good copy of XWin.exe.  I do development work
on XWin all the time, so I have to save a copy of XWin that works, thus
XWin-works.  I could have sworn that I removed the '-works' from the file
name, but I guess I didn't.

Harold

 -Original Message-
 From: Victor Atkinson [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 29, 2002 4:57 PM
 To: Harold Hunt
 Subject: RE: Can multiple remote sessions be run simultaneously under
 v4.2.0?


 Harold,

 Thanks for the fast reply.  However, your answer confuses me.  I
 do not have
 any executable, script or batch file called XWin-works.  However, when I
 modified your example to:

  start /B XWin :0 -query host1
  start /B XWin :1 -query host2

 it works perfectly.

 I would swear that I tried that particular combination.  (After being busy
 with other things for a couple of days, then coming back and
 taking a fresh
 look at the documentation, etc, this solution seems obvious to me.  Funny
 how it works out that way sometimes.)

 Having had success with your suggestions, I modified the original
 startxwin.bat batch file into something that gives me the
 functionality that
 I have been wanting.  Below is a 4NT (my command-line-interpreter) batch
 file that accepts a name of a host running XDM Chooser, then attempts to
 start XWin on a free display.  I don't yet know BASH script
 programming, but
 feel free to modify and distribute this as you see fit.

 begin XWinIndirect.btm
 -

 @ echo off

 ::Check inputs.
 iff %# lt 1 then
   echo `Error!  Command-line missing desired remote host for
 XDMCP Chooser
 query.`
   quit 1
 endiff

 ::Set global environment variables.
 set CYGWIN_ROOT=d:\cygwin
 set PATH=.;%CYGWIN_ROOT%\bin;%CYGWIN_ROOT%\usr\X11R6\bin;%PATH%

 ::Find unused X-Server display.
 for /l %Counter in (0,1,9) (
   set TestFile=%CYGWIN_ROOT%\tmp\.X11-unix\X%Counter%
   iff not exist %TestFile% then
   set DisplayNumber=%Counter%
   goto DisplayFound
   endiff
 )
 echo 'Error!  No unused X-Server display found.'
 quit 2

 :DisplayFound
 ::Set environment variables for specific X-Server instance.
 set DISPLAY=127.0.0.1:%DisplayNumber%
 echo `Found display `%DisplayNumber%` free, attempting to start
 X-Server as
 `%DISPLAY%

 ::Startup the X Server on the specified display.
 start /B XWin :%DisplayNumber% -screen 0 1024 768 -indirect %1

 -
 begin XWinIndirect.btm

 Thanks again for your help.

 Victor Atkinson
 Syracuse, NY, USA


  -Original Message-
  From: Harold Hunt [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, March 26, 2002 5:28 PM
  To: Victor Atkinson; [EMAIL PROTECTED]
  Subject: RE: Can multiple remote sessions be run simultaneously under
  v4.2.0?
 
 
  Victor,
 
   And I have also tried setting the display to alternate values:
  
 start /B XWin -display :0 -query host1
 start /B XWin -display :1 -query host2
 
  That is gibberish.  It doesn't mean anything.
 
  What you want is:
 
  start /B XWin-works :0 -query host1
  start /B XWin-works :1 -query host2
 
 
  I've tested this and gotten two distinct sessions to one machine (say,
  host1) at the same time.  I don't currently have two XDM hosts,
  but I'm sure
  it will work fine with two hosts.
 
  Let me know how this works.
 
  Harold
 
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]]On Behalf Of Victor Atkinson
   Sent: Tuesday, March 26, 2002 5:09 PM
   To: [EMAIL PROTECTED]
   Subject: Re: Can multiple remote sessions be run simultaneously under
   v4.2.0?
  
  
   Greetings,
  
   Thanks to all for the quick replies.  Unfortunately, I haven't
   been able to
   get a workable configuration together yet.  I have tried both
  combinations
   of screen 0  1 designations with XWin:
  
   Separate invocations:
  
 start /B XWin -screen 0 width height -query host1
 start /B XWin -screen 1 width height -query host2
  
   Single invocation:
  
 start /B XWin -screen 0 width height -query host1
   -screen 1 width
   height -query host2
  
   And I have also tried setting the display to alternate values:
  
 start /B XWin -display :0 -query host1
 start /B XWin -display :1 -query host2
  
   as well as all combinations of display  screen (0.0, 1.0, 1.1,
   etc) for the
   two sessions, both via the command line and the DISPLAY environment
   variable.
  
   The results are almost always identical, first XWin starts and
  connects to
   host1.  However, when the second server starts, the first screen
   appears to
   be reset to and empty X server session (just blank
 background) while the
   second server connects to host2.  When I am finished with host2
   and quit the
   second session (close the window), then the first session gives
  me a login
   prompt at host1 again.
  
   It appears as though there is some hardwired common display
   behavior 

RE: Can multiple remote sessions be run simultaneously under v4.2.0?

2002-03-29 Thread Harold Hunt

One more thing.  I just updated the documentation (User's Guide) yesterday
to include an example of how to run multiple XDMCP sessions.  I'm not sure,
but you may have seen the new documentation when you looked at it today;
thus, you didn't miss anything the first time around.

Harold

 -Original Message-
 From: Victor Atkinson [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 29, 2002 4:57 PM
 To: Harold Hunt
 Subject: RE: Can multiple remote sessions be run simultaneously under
 v4.2.0?


 Harold,

 Thanks for the fast reply.  However, your answer confuses me.  I
 do not have
 any executable, script or batch file called XWin-works.  However, when I
 modified your example to:

  start /B XWin :0 -query host1
  start /B XWin :1 -query host2

 it works perfectly.

 I would swear that I tried that particular combination.  (After being busy
 with other things for a couple of days, then coming back and
 taking a fresh
 look at the documentation, etc, this solution seems obvious to me.  Funny
 how it works out that way sometimes.)

 Having had success with your suggestions, I modified the original
 startxwin.bat batch file into something that gives me the
 functionality that
 I have been wanting.  Below is a 4NT (my command-line-interpreter) batch
 file that accepts a name of a host running XDM Chooser, then attempts to
 start XWin on a free display.  I don't yet know BASH script
 programming, but
 feel free to modify and distribute this as you see fit.

 begin XWinIndirect.btm
 -

 @ echo off

 ::Check inputs.
 iff %# lt 1 then
   echo `Error!  Command-line missing desired remote host for
 XDMCP Chooser
 query.`
   quit 1
 endiff

 ::Set global environment variables.
 set CYGWIN_ROOT=d:\cygwin
 set PATH=.;%CYGWIN_ROOT%\bin;%CYGWIN_ROOT%\usr\X11R6\bin;%PATH%

 ::Find unused X-Server display.
 for /l %Counter in (0,1,9) (
   set TestFile=%CYGWIN_ROOT%\tmp\.X11-unix\X%Counter%
   iff not exist %TestFile% then
   set DisplayNumber=%Counter%
   goto DisplayFound
   endiff
 )
 echo 'Error!  No unused X-Server display found.'
 quit 2

 :DisplayFound
 ::Set environment variables for specific X-Server instance.
 set DISPLAY=127.0.0.1:%DisplayNumber%
 echo `Found display `%DisplayNumber%` free, attempting to start
 X-Server as
 `%DISPLAY%

 ::Startup the X Server on the specified display.
 start /B XWin :%DisplayNumber% -screen 0 1024 768 -indirect %1

 -
 begin XWinIndirect.btm

 Thanks again for your help.

 Victor Atkinson
 Syracuse, NY, USA


  -Original Message-
  From: Harold Hunt [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, March 26, 2002 5:28 PM
  To: Victor Atkinson; [EMAIL PROTECTED]
  Subject: RE: Can multiple remote sessions be run simultaneously under
  v4.2.0?
 
 
  Victor,
 
   And I have also tried setting the display to alternate values:
  
 start /B XWin -display :0 -query host1
 start /B XWin -display :1 -query host2
 
  That is gibberish.  It doesn't mean anything.
 
  What you want is:
 
  start /B XWin-works :0 -query host1
  start /B XWin-works :1 -query host2
 
 
  I've tested this and gotten two distinct sessions to one machine (say,
  host1) at the same time.  I don't currently have two XDM hosts,
  but I'm sure
  it will work fine with two hosts.
 
  Let me know how this works.
 
  Harold
 
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]]On Behalf Of Victor Atkinson
   Sent: Tuesday, March 26, 2002 5:09 PM
   To: [EMAIL PROTECTED]
   Subject: Re: Can multiple remote sessions be run simultaneously under
   v4.2.0?
  
  
   Greetings,
  
   Thanks to all for the quick replies.  Unfortunately, I haven't
   been able to
   get a workable configuration together yet.  I have tried both
  combinations
   of screen 0  1 designations with XWin:
  
   Separate invocations:
  
 start /B XWin -screen 0 width height -query host1
 start /B XWin -screen 1 width height -query host2
  
   Single invocation:
  
 start /B XWin -screen 0 width height -query host1
   -screen 1 width
   height -query host2
  
   And I have also tried setting the display to alternate values:
  
 start /B XWin -display :0 -query host1
 start /B XWin -display :1 -query host2
  
   as well as all combinations of display  screen (0.0, 1.0, 1.1,
   etc) for the
   two sessions, both via the command line and the DISPLAY environment
   variable.
  
   The results are almost always identical, first XWin starts and
  connects to
   host1.  However, when the second server starts, the first screen
   appears to
   be reset to and empty X server session (just blank
 background) while the
   second server connects to host2.  When I am finished with host2
   and quit the
   second session (close the window), then the first session gives
  me a login
   prompt at host1 again.
  
   It appears as though there is some hardwired 

Development - In other news...

2002-03-29 Thread Harold Hunt



Alan Hourihane and I have been working a little bit on the NativeGDI
-engine 16 X Server in Cygwin/XFree86.  The current CVS builds are
completely runable: user input works, drawing graphics works mostly (xterm,
twm, with just a few screwups), and most notable the server no longer
crashes on startup.  However, lots of things don't work: we don't handle
redrawing covered-then-exposed regions of our Window, so you have to keep
the Cygwin/XFree86 window in focus unless you want the window to clear,
opaque stipple-fills don't work yet so the title bar on windows under twm
don't have the hatched pattern, and the performance is not something to brag
about.

That said, we are progressing well on our plan, which goes a little
something like the following:
1) Implement winFillSpans, winGetSpans, and winSetSpans.  These just draw
lines and all graphics functions can be reduced to spans operations.

2) Implement other graphics functions directly.  We haven't even begun to
start this yet.  We have to make a few corrections to the spans routines
first.


Performance sucks right now because *every* graphics operation must be
reduced to a series of line operations.  However, we have to have a perfect
set of spans routines because there are some X graphics functions that
cannot be simply translated into GDI graphics functions.  Thus, some X
graphics functions will always rely on spans functions.

There is one problem that I had not anticipated, but that Alan Hourihane
pointed out.  It turns out that GDI DIB's (Device Independent Bitmap) use a
different byte-order for 1 bit and 4 bit DIBs than they do for 8 bit, 16
bit, 24 bit, and 32 bit DIBs.  Alan flipped the BITMAP_BIT_ORDER flag to
MSBFirst from the default LSBFirst in
xc/programs/Xserver/include/servermd.h.  The problem here is that most
programs just look at IMAGE_BYTE_ORDER or BITMAP_BYTE_ORDER and assume that
they are equal.  For now we have them set to different values, which means
that some programs will assume bitmaps and pixmaps are LSBFirst while others
will assume that they are MSBFirst.  The ultimate solution here is to do
byte-map order translation for 1 bit and 4 bit DIBs when we do certain
operations with them.

However, we have yet to identify exactly when to do the translations.  Alan
and I have been pretty busy with other things lately, so this task has gone
unattended for several weeks.

Well, I guess that's all for now.  I just figured that some people might be
interested in what is going on... and *sigh* possibly helping out.

If you have some spare time, throw an eye at:

http://sourceforge.net/projects/xoncygwin

We've been using that site as a temporary CVS tree for the NativeGDI
development.  We'll be merging things back into XFree86 when we have
something more complete.  We have to fix the BITMAP_BIT_ORDER flag before we
can merge into XFree86, as none of the other engines draw correctly when
BITMAP_BIT_ORDER is set to MSBFirst.

Regards,

Harold




Re: placing launched MAGIC 7.1 app dissappears

2002-03-29 Thread Ed Conrad

I have been using the given bat file to launch it.  The line you refer to as
stated in the MAGICXF.bat that launches MAGIC:

start XWin -fullscreen -depth 8 -emulate3buttons

This launches its own window and you can tell it's 8-bit.
I was wondering if I need more RAM on my comp to run it?

I did have it up once and it was slow...
I can't get it back up though.

Ed


Harold Hunt wrote:

 Ed,

 Because Magic 7.1 only works when you have Windows in 8 bit color mode, or
 if you run in fullscreen mode at 8 bits per pixel, or if you tell Magic that
 you want it to use OpenGL for graphics.

 You can start Cygwin/XFree86 in fullscreen mode at 8 bits per pixel like so:

 XWin -fullscreen -depth 8

 Harold

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Ed Conrad
  Sent: Friday, March 29, 2002 3:53 PM
  To: [EMAIL PROTECTED]
  Subject: placing launched MAGIC 7.1  app dissappears
 
 
  Hi,
 
  I got magic 7.1 installed and trying to run it about
  10 times only got the magic window to open once.
  After that, I can't open it at all.  The full-screen
  window opens, the app window is on the mouse cusor,
  but when I place it, it vanishes.
 
  Does anyone know why windows vanish like that?
 
  Thanks
 
  Ed
 
  __
  Do You Yahoo!?
  Yahoo! Greetings - send holiday greetings for Easter, Passover
  http://greetings.yahoo.com/




using print screen

2002-03-29 Thread Robert Coit

Why are the colors changed when i use print screen to
capture the image in an xwindow?

how do i get the actual colors?

TIA



__
Do You Yahoo!?
Yahoo! Greetings - send holiday greetings for Easter, Passover
http://greetings.yahoo.com/



RE: XFree86

2002-03-29 Thread Harold Hunt

You have to ask such questions at the Cygwin/XFree86 mailing list.

Harold

-Original Message-
From: Tagas [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 9:02 PM
To: [EMAIL PROTECTED]
Subject: XFree86


Hi,

I was reading through the mailing list after discovering i have the dreaded
IO error 104.  This is what you suggested to do:

Sounds like you need to mount your drives in binary mode, and retry the
installation as the font files don't quite work right in text mode.

I tried typing mount -b -f as has been suggested to me but bash complains
that there aren't enough arguments in the command.  Since i am relatively
new to Unix, i was hoping that you could shed some light on what drives to
mount in binary mode, and how to execute the command.. i have read the help
in cygwin and on the net, but it doesn't seem applicable (btw, my XWin.log
is nearly exactly the same as the one that was posted on the net).

Thanks for any help in advance

Tagas