Subversion Repositories Kolibri OS

Rev

Rev 3120 | Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1.  
  2. typedef struct tag_display display_t;
  3.  
  4. typedef struct
  5. {
  6.     kobj_t     header;
  7.  
  8.     uint32_t  *data;
  9.     uint32_t   hot_x;
  10.     uint32_t   hot_y;
  11.  
  12.     struct list_head   list;
  13.     struct radeon_bo  *robj;
  14. }cursor_t;
  15.  
  16. #define CURSOR_WIDTH 64
  17. #define CURSOR_HEIGHT 64
  18.  
  19. struct tag_display
  20. {
  21.     int  x;
  22.     int  y;
  23.     int  width;
  24.     int  height;
  25.     int  bpp;
  26.     int  vrefresh;
  27.     int  pitch;
  28.     int  lfb;
  29.  
  30.     int  supported_modes;
  31.     struct drm_device    *ddev;
  32.     struct drm_connector *connector;
  33.     struct drm_crtc      *crtc;
  34.  
  35.     struct list_head   cursors;
  36.  
  37.     cursor_t   *cursor;
  38.     int       (*init_cursor)(cursor_t*);
  39.     cursor_t* (__stdcall *select_cursor)(cursor_t*);
  40.     void      (*show_cursor)(int show);
  41.     void      (__stdcall *move_cursor)(cursor_t *cursor, int x, int y);
  42.     void      (__stdcall *restore_cursor)(int x, int y);
  43.     void      (*disable_mouse)(void);
  44.     u32  mask_seqno;
  45.     u32  check_mouse;
  46.     u32  check_m_pixel;
  47.  
  48. };
  49.  
  50. extern display_t *os_display;
  51.  
  52. int   init_cursor(cursor_t *cursor);
  53. void  __stdcall restore_cursor(int x, int y);
  54.