/[gxemul]/trunk/src/devices/dev_fb.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/devices/dev_fb.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 31 by dpavlin, Mon Oct 8 16:20:40 2007 UTC revision 32 by dpavlin, Mon Oct 8 16:20:58 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: dev_fb.c,v 1.123 2006/07/24 08:08:39 debug Exp $   *  $Id: dev_fb.c,v 1.127 2006/10/22 04:20:53 debug Exp $
29   *     *  
30   *  Generic framebuffer device.   *  Generic framebuffer device.
31   *   *
32   *      DECstation VFB01 monochrome framebuffer, 1024x864   *      DECstation VFB01 monochrome framebuffer, 1024x864
33   *      DECstation VFB02 8-bit color framebuffer, 1024x864   *      DECstation VFB02 8-bit color framebuffer, 1024x864
34   *      DECstation Maxine, 1024x768 8-bit color   *      DECstation Maxine, 1024x768 8-bit color
  *      HPC (mips, arm, ..) framebuffer  
35   *      Playstation 2 (24-bit color)   *      Playstation 2 (24-bit color)
36   *      Generic (any resolution, several bit depths possible, useful for   *      Generic (any resolution, several bit depths possible, useful for
37   *              testmachines)   *              testmachines)
# Line 219  void dev_fb_setcursor(struct vfb_data *d Line 218  void dev_fb_setcursor(struct vfb_data *d
218          }          }
219  #endif  #endif
220    
         if (d->fb_window != NULL)  
                 console_set_framebuffer_mouse(cursor_x, cursor_y,  
                     d->fb_window->fb_number);  
   
221          /*  debug("dev_fb_setcursor(%i,%i, size %i,%i, on=%i)\n",          /*  debug("dev_fb_setcursor(%i,%i, size %i,%i, on=%i)\n",
222              cursor_x, cursor_y, cursor_xsize, cursor_ysize, on);  */              cursor_x, cursor_y, cursor_xsize, cursor_ysize, on);  */
223  }  }
# Line 413  void (*redraw[2 * 4 * 2])(struct vfb_dat Line 408  void (*redraw[2 * 4 * 2])(struct vfb_dat
408  #endif  /*  WITH_X11  */  #endif  /*  WITH_X11  */
409    
410    
411  /*  DEVICE_TICK(fb)
  *  dev_fb_tick():  
  *  
  */  
 void dev_fb_tick(struct cpu *cpu, void *extra)  
412  {  {
413          struct vfb_data *d = extra;          struct vfb_data *d = extra;
414  #ifdef WITH_X11  #ifdef WITH_X11
# Line 617  void dev_fb_tick(struct cpu *cpu, void * Line 608  void dev_fb_tick(struct cpu *cpu, void *
608  }  }
609    
610    
 /*  
  *  dev_fb_access():  
  */  
611  DEVICE_ACCESS(fb)  DEVICE_ACCESS(fb)
612  {  {
613          struct vfb_data *d = extra;          struct vfb_data *d = extra;
# Line 744  DEVICE_ACCESS(fb) Line 732  DEVICE_ACCESS(fb)
732   *   *
733   *  VFB_DEC_VFB01, _VFB02, and VFB_DEC_MAXINE are DECstation specific.   *  VFB_DEC_VFB01, _VFB02, and VFB_DEC_MAXINE are DECstation specific.
734   *   *
735   *  If type is VFB_HPC, then color encoding differs from the generic case.   *  VFB_HPC is like generic, but the color encoding is done as on HPCmips
736     *  and Dreamcast.
737   *   *
738   *  If bit_depth = -15 (note the minus sign), then a special hack is used for   *  If bit_depth = -15 (note the minus sign), then a special hack is used for
739   *  the Playstation Portable's 5-bit R, 5-bit G, 5-bit B.   *  the Playstation Portable's 5-bit R, 5-bit G, 5-bit B.

Legend:
Removed from v.31  
changed lines
  Added in v.32

  ViewVC Help
Powered by ViewVC 1.1.26