|
From: Lex S. <lex...@us...> - 2002-03-12 04:09:36
|
Update of /cvsroot/squeak/squeak/platforms/unix/vm
In directory usw-pr-cvs1:/tmp/cvs-serv30308
Modified Files:
sqXWindow.c
Log Message:
When Squeak is running headless, ioScreenSize() will try to return the
size of the Display when the image was last saved, instead of always
returning 64@64 .
Index: sqXWindow.c
===================================================================
RCS file: /cvsroot/squeak/squeak/platforms/unix/vm/sqXWindow.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** sqXWindow.c 11 Mar 2002 16:15:57 -0000 1.28
--- sqXWindow.c 12 Mar 2002 04:09:33 -0000 1.29
***************
*** 2032,2041 ****
{
#ifdef HEADLESS
! return ((64 << 16) | 64);
#else
! if (!isConnectedToXServer)
! return (64 << 16) | 64;
!
return (stWindowWidth << 16) | stWindowHeight;
--- 2032,2047 ----
{
#ifdef HEADLESS
! int headless= 1;
#else
! if (headless || !isConnectedToXServer)
! {
! if(savedWindowSize != 0)
! return savedWindowSize;
! else
! return (64 << 16) | 64;
! }
!
!
return (stWindowWidth << 16) | stWindowHeight;
|