Subversion Repositories Kolibri OS

Rev

Rev 1313 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

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