README.NanoX
changeset 471 26dafefeebb2
parent 30 57bf11a5efd7
     1.1 --- a/README.NanoX	Sun Aug 25 02:05:24 2002 +0000
     1.2 +++ b/README.NanoX	Sun Aug 25 06:21:49 2002 +0000
     1.3 @@ -1,14 +1,23 @@
     1.4    =================================================================
     1.5 -  Patch version 0.8 of SDL(Simple DirectMedia Layer) for Nano-X API
     1.6 +  Patch version 0.9 of SDL(Simple DirectMedia Layer) for Nano-X API
     1.7    =================================================================
     1.8    
     1.9 -  Author: Hsieh-Fu Tsai, clare@setabox.com
    1.10 +  Authors: Hsieh-Fu Tsai, clare@setabox.com
    1.11 +           Greg Haerr, greg@censoft.com
    1.12  
    1.13 -  There are two patch files in this package. 
    1.14 +  This patch is against SDL version 1.2.4.
    1.15 +  It enhances previous patch 0.8 by providing direct framebuffer
    1.16 +  access as well as dynamic hardware pixel type support, not
    1.17 +  requiring a compile-time option setting for different framebuffer
    1.18 +  modes.
    1.19 +  Tested against Microwindows version 0.89pre9.
    1.20  
    1.21 -  1. The first patch file, nanox.patch, is to fix a bug in Nano-X. 
    1.22 -     This patch is proposed by Gary James (gjames@twcny.rr.com).
    1.23 +  Older Microwindows versions
    1.24 +  ===========================
    1.25 +  If running on a version older than Microwindows 0.89pre9,
    1.26 +  the following items might need to be patched in Microwindows.
    1.27  
    1.28 +  1. Patch src/nanox/client.c::GrClose()
    1.29    It fixes the client side GrClose(). In the original version, 
    1.30    GrOpen() can only be called once. When the GrOpen() is called at 
    1.31    the second time, the program will terminate. In order to prevent
    1.32 @@ -16,6 +25,11 @@
    1.33    "close(nxSocket)" in GrClose(). If you do not have this problem,
    1.34    you may skip this step. 
    1.35  
    1.36 +  2. Patch src/nanox/clientfb.c to return absolute x,y coordinates
    1.37 +  when using GrGetWindowFBInfo().  Copy the version 0.89pre9
    1.38 +  of src/nanox/clientfb.c to your system, or configure
    1.39 +  using --disable-nanox-direct-fb.
    1.40 +
    1.41    =============
    1.42    Quick Install 
    1.43    =============
    1.44 @@ -31,18 +45,14 @@
    1.45    Nitty-gritty 
    1.46    ============
    1.47  
    1.48 -  --with-nanox-pixel-type=[rgb/0888/888/565/555/332/pal] 
    1.49 -
    1.50 -  If the wrong pixel type is used, the program will crash when the 
    1.51 -  sub-routine updates the screen. This option depends on SCREEN_PIXTYPE 
    1.52 -  which is defined in Microwin0.89pre7/src/config. SCREEN_PIXTYPE 
    1.53 -  is used to define the pixel type in Microwindows/Nano-X. 
    1.54 -  I only test the program when the pixel type is in "rgb" 
    1.55 -  (Microwin under X11) or "888" (framebuffer in 24-bit).
    1.56 -
    1.57 +  --enable-nanox-direct-fb       Use direct framebuffer access
    1.58    --enable-nanox-debug           Show debug messages 
    1.59    --enable-nanox-share-memory    Use shared-memory to speed up 
    1.60  
    1.61 +  When running multi-threaded applications using SDL, such
    1.62 +  as SMPEG, set THREADSAFE=Y in Microwindows' config file,
    1.63 +  to enable GrXXX() system call critical section support.
    1.64 +
    1.65    =============================================
    1.66    Some programs can be used to test this patch. 
    1.67    =============================================
    1.68 @@ -52,7 +62,8 @@
    1.69    3. http://www.libsdl.org/projects/xflame/
    1.70    4. http://www.libsdl.org/projects/optimum/ 
    1.71    5. http://www.gnugeneration.com/software/loop/ 
    1.72 -    
    1.73 +  6: http://www.lokigames.com/development/smpeg.php3 (SMPEG version 0.4.4)
    1.74 +
    1.75    =========
    1.76    Todo List 
    1.77    =========
    1.78 @@ -62,6 +73,8 @@
    1.79    3. Use OpenGL
    1.80    4. Gamma correction
    1.81    5. Hide/Change mouse pointer
    1.82 +  6. Better window movement control with direct fb access
    1.83 +  7. Palette handling in 8bpp could be improved
    1.84  
    1.85    =====================
    1.86    Supporting Institutes
    1.87 @@ -72,10 +85,13 @@
    1.88    Department of Computer Science and Information Engineering of 
    1.89    National Taiwan University for supporting this porting project.
    1.90    
    1.91 +  Century Embedded Technologies (http://embedded.censoft.com)
    1.92 +  for this patch.
    1.93 +
    1.94    ===================
    1.95    Contact Information
    1.96    ===================
    1.97  
    1.98    Welcome to give me any suggestion and to report bugs.
    1.99    My e-mail address : clare@setabox.com or niky@cmlab.csie.ntu.edu.tw
   1.100 -  
   1.101 +                      or greg@censoft.com