Rev 8655 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
8596 | turbocat | 1 | #include |
2 | #include |
||
3 | #include |
||
4 | |||
5 | void kolibri_set_win_center() |
||
6 | { |
||
7 | struct proc_info *info = (struct proc_info*)malloc(sizeof(struct proc_info)); |
||
8 | get_proc_info((char*)info); |
||
9 | |||
10 | pos_t screen_size= max_screen_size(); |
||
11 | int new_x = screen_size.x/2-info->width/2; |
||
12 | int new_y = screen_size.y/2-info->height/2; |
||
13 | sys_change_window(new_x,new_y, -1, -1); |
||
14 | free(info); |
||
15 | } |