Subversion Repositories Kolibri OS

Rev

Rev 1275 | Rev 1403 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1275 Rev 1313
Line 11... Line 11...
11
 
11
 
Line 12... Line 12...
12
static cursor_t*  __stdcall select_cursor(cursor_t *cursor);
12
static cursor_t*  __stdcall select_cursor(cursor_t *cursor);
13
static void       __stdcall move_cursor(cursor_t *cursor, int x, int y);
13
static void       __stdcall move_cursor(cursor_t *cursor, int x, int y);
Line -... Line 14...
-
 
14
 
-
 
15
extern void destroy_cursor(void);
-
 
16
 
-
 
17
void disable_mouse(void)
-
 
18
{};
14
 
19
 
15
int init_cursor(cursor_t *cursor)
20
int init_cursor(cursor_t *cursor)
16
{
21
{
Line 17... Line 22...
17
    struct radeon_device *rdev;
22
    struct radeon_device *rdev;
Line 53... Line 58...
53
        *bits++ = 0;
58
        *bits++ = 0;
54
 
59
 
Line 55... Line 60...
55
    radeon_object_kunmap(cursor->robj);
60
    radeon_object_kunmap(cursor->robj);
Line -... Line 61...
-
 
61
 
-
 
62
    cursor->header.destroy = destroy_cursor;
56
 
63
 
57
    return 0;
64
    return 0;
Line -... Line 65...
-
 
65
};
-
 
66
 
-
 
67
void fini_cursor(cursor_t *cursor)
-
 
68
{
-
 
69
    list_del(&cursor->list);
-
 
70
    radeon_object_unpin(cursor->robj);
-
 
71
    KernelFree(cursor->data);
-
 
72
    __DestroyObject(cursor);
-
 
73
};
58
};
74
 
59
 
75
 
60
static void radeon_show_cursor()
76
static void radeon_show_cursor()
Line 61... Line 77...
61
{
77
{
Line 186... Line 202...
186
        rdisplay->select_cursor  = select_cursor;
202
        rdisplay->select_cursor  = select_cursor;
187
        rdisplay->show_cursor    = NULL;
203
        rdisplay->show_cursor    = NULL;
188
        rdisplay->move_cursor    = move_cursor;
204
        rdisplay->move_cursor    = move_cursor;
189
        rdisplay->restore_cursor = restore_cursor;
205
        rdisplay->restore_cursor = restore_cursor;
190
 
206
        rdisplay->disable_mouse  = disable_mouse;
-
 
207
 
Line 191... Line 208...
191
        select_cursor(rdisplay->cursor);
208
        select_cursor(rdisplay->cursor);
192
        radeon_show_cursor();
209
        radeon_show_cursor();
193
    };
210
    };
194
    safe_sti(ifl);
211
    safe_sti(ifl);