Update of /cvsroot/fink/dists/10.3/stable/main/finkinfo/sci
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31688

Modified Files:
        stellarium.info stellarium.patch 
Log Message:
Patched to fix flipped mouse y coord. Updated DescUsage with instructions about trying 
windowed mode if full screen mode fails.

Index: stellarium.patch
===================================================================
RCS file: /cvsroot/fink/dists/10.3/stable/main/finkinfo/sci/stellarium.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- stellarium.patch    9 Oct 2004 22:05:22 -0000       1.1
+++ stellarium.patch    13 Oct 2004 22:59:32 -0000      1.2
@@ -1,6 +1,6 @@
-diff -ru stellarium-0.6.0/configure stellarium-0.6.0.patched/configure
---- stellarium-0.6.0/configure Mon May 31 11:05:08 2004
-+++ stellarium-0.6.0.patched/configure Sat Aug 14 14:12:33 2004
+diff -ru stellarium-0.6.0.orig/configure stellarium-0.6.0/configure
+--- stellarium-0.6.0.orig/configure    Mon May 31 11:05:08 2004
++++ stellarium-0.6.0/configure Mon Oct 11 23:23:25 2004
 @@ -3331,8 +3331,8 @@
  
  
@@ -21,9 +21,9 @@
        LIBS="$LIBS -framework OpenGL -lobjc "
  ;;
  
-diff -ru stellarium-0.6.0/src/main.cpp stellarium-0.6.0.patched/src/main.cpp
---- stellarium-0.6.0/src/main.cpp      Fri Apr 30 04:16:56 2004
-+++ stellarium-0.6.0.patched/src/main.cpp      Sat Aug 14 13:21:42 2004
+diff -ru stellarium-0.6.0.orig/src/main.cpp stellarium-0.6.0/src/main.cpp
+--- stellarium-0.6.0.orig/src/main.cpp Fri Apr 30 04:16:56 2004
++++ stellarium-0.6.0/src/main.cpp      Mon Oct 11 23:23:25 2004
 @@ -142,7 +142,7 @@
  
        // If the system is non unix (windows) or if it's macosx the config file is in 
the
@@ -33,9 +33,9 @@
        CDIR = DATA_ROOT + "/config/";
  
        if ((tempFile = fopen((CDIR + "config.ini").c_str(),"r")))
-diff -ru stellarium-0.6.0/src/observator.cpp 
stellarium-0.6.0.patched/src/observator.cpp
---- stellarium-0.6.0/src/observator.cpp        Mon May 31 10:33:10 2004
-+++ stellarium-0.6.0.patched/src/observator.cpp        Sat Aug 14 13:21:42 2004
+diff -ru stellarium-0.6.0.orig/src/observator.cpp stellarium-0.6.0/src/observator.cpp
+--- stellarium-0.6.0.orig/src/observator.cpp   Mon May 31 10:33:10 2004
++++ stellarium-0.6.0/src/observator.cpp        Mon Oct 11 23:23:25 2004
 @@ -166,7 +166,16 @@
  // Fixed 31-05-2004 Now use the extern variables set by tzset()
  float Observator::get_GMT_shift_from_system(double JD) const
@@ -53,3 +53,46 @@
  
        
  /*    time_t rawtime = get_time_t_from_julian(JD);
+diff -ru stellarium-0.6.0.orig/src/stel_sdl.cpp stellarium-0.6.0/src/stel_sdl.cpp
+--- stellarium-0.6.0.orig/src/stel_sdl.cpp     Wed May  5 16:49:20 2004
++++ stellarium-0.6.0/src/stel_sdl.cpp  Tue Oct 12 23:27:05 2004
+@@ -121,15 +121,36 @@
+                                       break;
+ 
+                               case SDL_MOUSEMOTION:
+-                                      core->handle_move(E.motion.x,E.motion.y);
++                                      if (core->get_Fullscreen())
++                                      {
++                                              
core->handle_move(E.motion.x,E.motion.y);
++                                      }
++                                      else
++                                      {
++                                              
core->handle_move(E.motion.x,(core->get_screen_H()-E.motion.y));
++                                      }
+                                       break;
+ 
+                               case SDL_MOUSEBUTTONDOWN:
+-                                      
core->handle_clic(E.button.x,E.button.y,E.button.button,E.button.state);
++                                      if (core->get_Fullscreen())
++                                      {
++                                              
core->handle_clic(E.button.x,E.button.y,E.button.button,E.button.state);
++                                      }
++                                      else
++                                      {
++                                              
core->handle_clic(E.button.x,(core->get_screen_H()-E.motion.y),E.button.button,E.button.state);
++                                      }
+                                       break;
+ 
+                               case SDL_MOUSEBUTTONUP:
+-                                      
core->handle_clic(E.button.x,E.button.y,E.button.button,E.button.state);
++                                      if (core->get_Fullscreen())
++                                      {
++                                              
core->handle_clic(E.button.x,E.button.y,E.button.button,E.button.state);
++                                      }
++                                      else
++                                      {
++                                              
core->handle_clic(E.button.x,(core->get_screen_H()-E.motion.y),E.button.button,E.button.state);
++                                      }
+                                       break;
+ 
+                               case SDL_KEYDOWN:

Index: stellarium.info
===================================================================
RCS file: /cvsroot/fink/dists/10.3/stable/main/finkinfo/sci/stellarium.info,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- stellarium.info     9 Oct 2004 22:05:22 -0000       1.1
+++ stellarium.info     13 Oct 2004 22:59:32 -0000      1.2
@@ -1,6 +1,6 @@
 Package: stellarium
 Version: 0.6.0
-Revision: 3
+Revision: 4
 Description: Real time 3D sky renderer
 Maintainer: Daniel Johnson <[EMAIL PROTECTED]>
 Source: mirror:sourceforge:stellarium/stellarium-%v.tar.gz
@@ -43,12 +43,17 @@
   Xcode before 1.5. MacOS X doesn't have daylight or timezone variables, so
   had to change timezone code. Patched main.cpp to save configuration file
   in ~/.stellarium/config.ini instead of %p/share/stellarium/config/config.ini
+  and patched stel_sdl.cpp to flip y coordinate when in windowed mode.
 <<
 DescUsage: <<
   User interface uses SDL and OpenGL; X11 is NOT used. Can be run from
   Terminal.app without X11 running. Due to limitations of SDL library,
-  stellarium will NOT work if X11 is also running in full screen mode;
-  rootless mode is fine.
+  stellarium will NOT work in full screen mode if X11 is also running in
+  full screen mode; rootless mode is fine. In addition, full screen mode
+  won't work if your Mac does not support OpenGL hardware acceleration.
+  Basically, if full screen mode doesn't work, try windowed mode; set
+  "fullscreen = true" to "fullscreen = false" in your ~/.stellarium/config.ini
+  and make your screen_h and screen_w smaller than your screen size.
 <<
 DocFiles: AUTHORS COPYING INSTALL NEWS README TODO doc/developer_guide.tex
 License: GPL



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to