Subversion Repositories Kolibri OS

Rev

Rev 3120 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

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